class

NanoSVG::Gradient

Inherits Reference < Object

NOTE(port): class (not struct) so gradients stored in Paint can be mutated in place by the parser/rasterizer.

Constructors

Instance methods

fx=(fx : Float32)
Source
fy=(fy : Float32)
Source
spread
Source
spread=(spread : SpreadType)
Source
stops
Source
stops=(stops : Array(GradientStop))
Source
xform

Inverse transform from screen pixels to gradient space (0..1).

Source
xform=(xform : Array(Float32))

Inverse transform from screen pixels to gradient space (0..1).

Source