nCine::ColorAffector class

Particle color affector.

Base classes

class ParticleAffector
Base class for particle affectors.

Public types

struct ColorStep

Constructors, destructors, conversion operators

ColorAffector()
ColorAffector(ColorAffector&&) defaulted
Default move constructor.
ColorAffector(const ColorAffector& other) protected defaulted
Protected default copy constructor used to clone objects.

Public functions

auto operator=(ColorAffector&&) -> ColorAffector& defaulted
Default move assignment operator.
auto clone() const -> ColorAffector
Returns a copy of this object.
void affect(Particle* particle, float normalizedAge) override
Affects the color of the specified particle.
void addColorStep(float age, const Colorf& color)
auto steps() -> SmallVectorImpl<ColorStep>&
auto steps() const -> const SmallVectorImpl<ColorStep>&