Represents a collection of GraphicGradientStop values for use with CreateLinearGradientBrush and CreateRadialGradientBrush.
The stops are maintained in order of position. If two or more stops are added with the same position then the one(s) added later come later. This can be useful for producing discontinuities in the colour gradient.
Notice that this class is write-once, you can’t modify the stops once they had been added.
Added in version 2.9.1.
Initializes the gradient stops with the given boundary colours. |
|
Add a new stop. |
|
Returns the number of stops. |
|
Returns the end colour. |
|
Returns the start colour. |
|
Returns the stop at the given index. |
|
Set the end colour to col. |
|
Set the start colour to col. |
|
See |
|
See |
|
See |
Possible constructors:
GraphicsGradientStops(startCol: Colour=TransparentColour, endCol:
Colour=TransparentColour) -> None
Represents a collection of GraphicGradientStop values for use with CreateLinearGradientBrush and CreateRadialGradientBrush.
Initializes the gradient stops with the given boundary colours.
Creates a wx.GraphicsGradientStops instance with start colour given by startCol and end colour given by endCol.
Add a new stop.
Add (self, stop : GraphicsGradientStop)
stop (wx.GraphicsGradientStop)
None
Add (self, col : Colour, pos : float)
col (wx.Colour)
pos (float)
None
Returns the number of stops.
int
Returns the stop at the given index.
n – The index, must be in [0
, GetCount
) range.
Set the end colour to col.
col (wx.Colour)
None
Set the start colour to col.
col (wx.Colour)
None
int
See GetEndColour
and SetEndColour
See GetStartColour
and SetStartColour