Skip to content

Documentation / @ripl/canvas / setCanvasStroke

Function: setCanvasStroke() ​

setCanvasStroke(ctx, value, bounds): void

Defined in: canvas/src/utilities.ts:219

Sets the stroke style on a native canvas context, resolving gradient and pattern strings when applicable.

Parameters ​

ParameterType
ctxCanvasRenderingContext2D
valuestring
boundsGradientBounds

Returns ​

void