Skip to content

GradientStop

Defined in: renderer/src/gradient.ts:5

A single color stop along a gradient, with yage’s numeric color + alpha pair.

optional alpha?: 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: number

Defined in: renderer/src/gradient.ts:7

Position along the gradient, 0 (start) to 1 (end).