|
| | ColourGradient () noexcept |
| | ColourGradient (const ColourGradient &) |
| | ColourGradient (ColourGradient &&) noexcept |
| ColourGradient & | operator= (const ColourGradient &) |
| ColourGradient & | operator= (ColourGradient &&) noexcept |
| | ColourGradient (Colour colour1, float x1, float y1, Colour colour2, float x2, float y2, bool isRadial) |
| | ColourGradient (Colour colour1, Point< float > point1, Colour colour2, Point< float > point2, bool isRadial) |
| | ~ColourGradient () |
| void | clearColours () |
| int | addColour (double proportionAlongGradient, Colour colour) |
| void | removeColour (int index) |
| void | multiplyOpacity (float multiplier) noexcept |
| int | getNumColours () const noexcept |
| double | getColourPosition (int index) const noexcept |
| Colour | getColour (int index) const noexcept |
| void | setColour (int index, Colour newColour) noexcept |
| Colour | getColourAtPosition (double position) const noexcept |
| int | createLookupTable (const AffineTransform &transform, HeapBlock< PixelARGB > &resultLookupTable) const |
| void | createLookupTable (PixelARGB *resultLookupTable, int numEntries) const noexcept |
| bool | isOpaque () const noexcept |
| bool | isInvisible () const noexcept |
| bool | operator== (const ColourGradient &) const noexcept |
| bool | operator!= (const ColourGradient &) const noexcept |
Describes the layout and colours that should be used to paint a colour gradient.
- See also
- Graphics::setGradientFill
@tags{Graphics}
| juce::ColourGradient::ColourGradient |
( |
Colour | colour1, |
|
|
float | x1, |
|
|
float | y1, |
|
|
Colour | colour2, |
|
|
float | x2, |
|
|
float | y2, |
|
|
bool | isRadial ) |
Creates a gradient object.
(x1, y1) is the location to draw with colour1. Likewise (x2, y2) is where colour2 should be. In between them there's a gradient.
If isRadial is true, the colours form a circular gradient with (x1, y1) at its centre.
The alpha transparencies of the colours are used, so note that if you blend from transparent to a solid colour, the RGB of the transparent colour will become visible in parts of the gradient. e.g. blending from Colour::transparentBlack to Colours::white will produce a muddy grey colour midway, but Colour::transparentWhite to Colours::white will be white all the way across.
- See also
- ColourGradient
| juce::ColourGradient::ColourGradient |
( |
Colour | colour1, |
|
|
Point< float > | point1, |
|
|
Colour | colour2, |
|
|
Point< float > | point2, |
|
|
bool | isRadial ) |
Creates a gradient object.
point1 is the location to draw with colour1. Likewise point2 is where colour2 should be. In between them there's a gradient.
If isRadial is true, the colours form a circular gradient with point1 at its centre.
The alpha transparencies of the colours are used, so note that if you blend from transparent to a solid colour, the RGB of the transparent colour will become visible in parts of the gradient. e.g. blending from Colour::transparentBlack to Colours::white will produce a muddy grey colour midway, but Colour::transparentWhite to Colours::white will be white all the way across.
- See also
- ColourGradient