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: Colour=TransparentColour, pos: float=0.) ->
None
Represents a single gradient stop in a collection of gradient stops as represented by GraphicsGradientStops.
__init__
(self, col: Colour=TransparentColour, pos: float=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.
None
GetPosition
(self)¶Return the stop position.
float
SetColour
(self, col : Colour)¶Change the stop colour.
col (wx.Colour) – The new colour.
None
SetPosition
(self, pos : float)¶Change the stop position.
pos (float) – The new position, must always be in [0
, 1]
range.
None
Position
¶See GetPosition
and SetPosition