Documentation / @finchart/core / index / CanvasGradientLike
Interface: CanvasGradientLike
Defined in: packages/core/src/render/types.ts:80
A brush that isn't a color string (gradient, pattern) — core neither creates nor reads it; it exists only so a real context's strokeStyle/fillStyle type can be assigned.
Methods
addColorStop()
addColorStop(
offset,color):void
Defined in: packages/core/src/render/types.ts:81
Parameters
offset
number
color
string
Returns
void