Class: QgsGradientStop¶
- class qgis.core.QgsGradientStop¶
Bases:
sip.wrapper
Represents a color stop within a
QgsGradientColorRamp
color ramp.New in version 3.0.
QgsGradientStop(offset: float, color: Union[QColor, Qt.GlobalColor, QGradient]) Constructor for QgsGradientStop
- Parameters
offset – positional offset for stop, between 0 and 1.0
color – color for stop
QgsGradientStop(
QgsGradientStop
)Attributes
- color¶
- offset¶