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