GradientStop
Defined in: renderer/src/gradient.ts:5
A single color stop along a gradient, with yage’s numeric color + alpha pair.
Properties
Section titled “Properties”alpha?
Section titled “alpha?”
optionalalpha?:number
Defined in: renderer/src/gradient.ts:11
Opacity 0-1. Default: 1.
color:
number
Defined in: renderer/src/gradient.ts:9
Color as 0xRRGGBB.
offset
Section titled “offset”offset:
number
Defined in: renderer/src/gradient.ts:7
Position along the gradient, 0 (start) to 1 (end).