Skip to content

API Interface Gradient

github-actions[bot] edited this page Nov 30, 2026 · 3 revisions

Interface: Gradient

Defined in: src/engine/core/gradient.ts:19

A gradient: colour keys (#rrggbb) and alpha keys, each at t from 0 to 1.

Properties

alphas

alphas: [number, number][];

Defined in: src/engine/core/gradient.ts:21


colors

colors: [number, string][];

Defined in: src/engine/core/gradient.ts:20

Clone this wiki locally