Class: QgsStyleColorRampEntity¶
- class qgis.core.QgsStyleColorRampEntity(ramp: QgsColorRamp)¶
Bases:
QgsStyleEntityInterface
Constructor for
QgsStyleColorRampEntity
, with the specified colorramp
.Ownership of
ramp
is NOT transferred.QgsStyleColorRampEntity(
QgsStyleColorRampEntity
)A color ramp entity for
QgsStyle
databases.- ramp(self) QgsColorRamp ¶
Returns the entity’s color ramp.
- Return type
- type(self) QgsStyle.StyleEntity ¶
- Return type