Iterates the colour of pixels in a linear gradient. More...
#include <juce_RenderingHelpers.h>
Public Member Functions | |
Linear (const ColourGradient &gradient, const AffineTransform &transform, const PixelARGB *const colours, const int numColours) | |
PixelARGB | getPixel (const int x) const noexcept |
forcedinline void | setY (const int y) noexcept |
Private Types | |
enum | { numScaleBits = 12 } |
Private Attributes | |
double | grad |
bool | horizontal |
PixelARGB | linePix |
const PixelARGB *const | lookupTable |
const int | numEntries |
int | scale |
int | start |
bool | vertical |
double | yTerm |
Iterates the colour of pixels in a linear gradient.
|
inline |
|
inlinenoexcept |
References jlimit(), juce::roundToInt(), and scale.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |