Represents a single gradient stop in a collection of gradient stops as represented by GraphicsGradientStops.
New in version 2.9.1.
__init__ | Creates a stop with the given colour and position. |
GetColour | Return the stop colour. |
GetPosition | Return the stop position. |
SetColour | Change the stop colour. |
SetPosition | Change the stop position. |
Represents a single gradient stop in a collection of gradient stops as represented by GraphicsGradientStops.
Possible constructors:
GraphicsGradientStop(col=TransparentColour, pos=0.)
Creates a stop with the given colour and position.
Parameters: |
|
---|
Return the stop position.
Return type: | float |
---|
Change the stop position.
Parameters: | pos (float) – The new position, must always be in [0, 1] range. |
---|
See GetPosition and SetPosition