Skip to content

pencil.js / component / StyleLike

Interface: StyleLike ​

Defined in: internal/canvas.ts:34

Anything that can be used as a fill or stroke style

Methods ​

toString() ​

ts
toString(ctx?): string | CanvasGradient | CanvasPattern;

Defined in: internal/canvas.ts:35

Parameters ​

ParameterType
ctx?CanvasRenderingContext2D

Returns ​

string | CanvasGradient | CanvasPattern

Released under the MIT License.