Class: QgsGradientStop

class qgis.core.QgsGradientStop(offset: float, color: Union[QColor, Qt.GlobalColor, QGradient])

Bases: sip.wrapper

Constructor for QgsGradientStop

Parameters:
  • offset – positional offset for stop, between 0 and 1.0
  • color – color for stop

QgsGradientStop(QgsGradientStop)

Represents a color stop within a QgsGradientColorRamp color ramp.

New in version 3.0: Enums

Methods

Signals

Attributes

qgis.core.QgsGradientStop.color
qgis.core.QgsGradientStop.offset
color
offset