Documentation / @ripl/canvas / setCanvasFill
Function: setCanvasFill() ​
setCanvasFill(
ctx,value,bounds):void
Defined in: canvas/src/utilities.ts:196
Sets the fill style on a native canvas context, resolving gradient and pattern strings when applicable.
Parameters ​
| Parameter | Type |
|---|---|
ctx | CanvasRenderingContext2D |
value | string |
bounds | GradientBounds |
Returns ​
void