Skip to content

Documentation / @ripl/canvas / setCanvasFill

Function: setCanvasFill()

setCanvasFill(ctx, value, bounds): void

Defined in: canvas/src/helpers.ts:129

Sets the fill style on a native canvas context, resolving gradient strings when applicable.

Parameters

ParameterType
ctxCanvasRenderingContext2D
valuestring
boundsGradientBounds

Returns

void