1.0.4 • Published 3 years ago

malyan-ink v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

malyan-ink

这是一个基于 canvas 轻度封装的库,它抽象了各种形状,Canvas 以及事件处理机制等。

Examples

const canvas: Canvas = new Canvas('force_canvas', {
      width: 200,
      height: 200
    });

const circle = new Circle({
  x: 50,
  y: 50,
  r: 5,
  fillStyle: 'red
}, canvas);

canvas.addChild(circle);
canvas.draw();

Api 用法

TODO