Skip to content

vyaz-monorepo / renderers/src / renderToCanvas

Function: renderToCanvas() ​

renderToCanvas(ctx, lines, options?): void

Defined in: renderers/src/CanvasRenderer.ts:212

Render Line[] array to Canvas.

Parameters ​

ctx ​

any

— Canvas 2D rendering context

lines ​

Line[]

— ready Line[] with absolute coordinates

options? ​

CanvasRenderOptions = {}

— rendering options

Returns ​

void

Released under the MIT License.