@rizurin/core

0.0.2 • Public • Published

@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)
...

Readme

Keywords

none

Package Sidebar

Install

npm i @rizurin/core

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

13.3 kB

Total Files

11

Last publish

Collaborators

  • yrq110