Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 351 Bytes

README.md

File metadata and controls

20 lines (15 loc) · 351 Bytes

@rizurin/renderer

Installation

yarn add @rizurin/renderer

Usage

Use a renderer to draw graphics, bind to layer:

import { CanvasRenderer } from '@rizurin/render'
import { Layer } from '@rizurin/core';
...
let layer = new Layer({renderer: 'canvas'})
layer.bind(await new CanvasRenderer({canvas: layer.canvas}))
...