Skip to content

Documentation / @finchart/core / index / LinearGradientParams

Interface: LinearGradientParams ​

Defined in: packages/core/src/render/gradient.ts:32

Plain data — no functions or brush objects, so it passes straight through a worker or serialization path.

Properties ​

from ​

readonly from: Point

Defined in: packages/core/src/render/gradient.ts:36

Start of the gradient axis — where offset 0 sits.


points ​

readonly points: readonly Point[]

Defined in: packages/core/src/render/gradient.ts:34

The polygon to fill (screen coordinates).


stops ​

readonly stops: readonly GradientStop[]

Defined in: packages/core/src/render/gradient.ts:39


to ​

readonly to: Point

Defined in: packages/core/src/render/gradient.ts:38

End of the gradient axis — where offset 1 sits.