JUCE  v5.4.1-191-g0ab5e696f
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::RenderingHelpers::GradientPixelIterators::Radial Struct Reference

Iterates the colour of pixels in a circular radial gradient. More...

#include <juce_RenderingHelpers.h>

Inheritance diagram for juce::RenderingHelpers::GradientPixelIterators::Radial:
Collaboration diagram for juce::RenderingHelpers::GradientPixelIterators::Radial:

Public Member Functions

 Radial (const ColourGradient &gradient, const AffineTransform &, const PixelARGB *colours, int numColours)
 
PixelARGB getPixel (int px) const noexcept
 
forcedinline void setY (int y) noexcept
 

Public Attributes

double dy
 
const double gx1
 
const double gy1
 
double invScale
 
const PixelARGB *const lookupTable
 
double maxDist
 
const int numEntries
 

Detailed Description

Iterates the colour of pixels in a circular radial gradient.

Constructor & Destructor Documentation

◆ Radial()

juce::RenderingHelpers::GradientPixelIterators::Radial::Radial ( const ColourGradient gradient,
const AffineTransform ,
const PixelARGB colours,
int  numColours 
)
inline

Member Function Documentation

◆ getPixel()

PixelARGB juce::RenderingHelpers::GradientPixelIterators::Radial::getPixel ( int  px) const
inlinenoexcept

References juce::roundToInt().

◆ setY()

forcedinline void juce::RenderingHelpers::GradientPixelIterators::Radial::setY ( int  y)
inlinenoexcept

Member Data Documentation

◆ dy

double juce::RenderingHelpers::GradientPixelIterators::Radial::dy

◆ gx1

const double juce::RenderingHelpers::GradientPixelIterators::Radial::gx1

◆ gy1

const double juce::RenderingHelpers::GradientPixelIterators::Radial::gy1

◆ invScale

double juce::RenderingHelpers::GradientPixelIterators::Radial::invScale

◆ lookupTable

const PixelARGB* const juce::RenderingHelpers::GradientPixelIterators::Radial::lookupTable

◆ maxDist

double juce::RenderingHelpers::GradientPixelIterators::Radial::maxDist

◆ numEntries

const int juce::RenderingHelpers::GradientPixelIterators::Radial::numEntries

The documentation for this struct was generated from the following file: