Class: QgsStyleColorRampEntity

class qgis.core.QgsStyleColorRampEntity(ramp: QgsColorRamp)

Bases: qgis._core.QgsStyleEntityInterface

Constructor for QgsStyleColorRampEntity, with the specified color ramp.

Ownership of ramp is NOT transferred.

QgsStyleColorRampEntity(QgsStyleColorRampEntity)

A color ramp entity for QgsStyle databases.

New in version 3.10: Enums

Methods

ramp

Returns the entity’s color ramp.

type

Signals

Attributes

ramp(self) → QgsColorRamp

Returns the entity’s color ramp.

type(self) → QgsStyle.StyleEntity