Represents a single gradient stop in a collection of gradient stops as represented by wx.GraphicsGradientStops.
New in version 2.9.1.
Creates a stop with the given colour and position. |
|
Return the stop colour. |
|
Return the stop position. |
|
Change the stop colour. |
|
Change the stop position. |
See |
wx.
GraphicsGradientStop
(object)¶Possible constructors:
GraphicsGradientStop(col=TransparentColour, pos=0.)
Represents a single gradient stop in a collection of gradient stops as represented by GraphicsGradientStops.
__init__
(self, col=TransparentColour, pos=0.)¶Creates a stop with the given colour and position.
col (wx.Colour) – The colour of this stop. Note that the alpha component of the colour is honoured thus allowing the background colours to partially show through the gradient.
pos (float) – The stop position, must be in [0
, 1]
range with 0 being the beginning and 1 the end of the gradient.
GetPosition
(self)¶Return the stop position.
float
SetPosition
(self, pos)¶Change the stop position.
pos (float) – The new position, must always be in [0
, 1]
range.
Position
¶See GetPosition
and SetPosition