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