Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 472 Bytes

README.md

File metadata and controls

26 lines (20 loc) · 472 Bytes

@rizurin/core

Installation

yarn add @rizurin/core

Usage

Supply basic objects to handle drawing contents:

import { CanvasRenderer } from '@rizurin/renderer';
import { Scene, Layer, Group } from '@rizurin/core';
...
let scene = new Scene({container, width, height})
let layer = new Layer({renderer: 'canvas'})
layer.bind(await new CanvasRenderer({canvas: layer.canvas}))
let group = new Group()
...
layer.add(group)
scene.add(layer)
...