StopsGradientPaint

The base of gradients with color stops: the gradient function t of a coordinate picks a color from the stops. The code of the gradient depends on the number of stops, a gradient with another number of stops compiles another shader.

Inheritors

Constructors

Link copied to clipboard
constructor(stops: List<ColorStop>)

Properties

Link copied to clipboard
open override val contract: GlslContract

the signature of the dynamic parameter of this preset

Link copied to clipboard
open override val dynamicParameter: GlslFunction
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

the color stops, sorted by offset when they are set

Functions

Link copied to clipboard

true when this preset can read the values of fxContextLibrary, also through the presets in its slots, so that it changes over time even when nothing else does, see DynamicParameter.readsFxContext