1.0.5 • Published 5 months ago

paintbricks v1.0.5

Weekly downloads
2
License
MIT
Repository
github
Last release
5 months ago

paintbricks

An extendable drawing system built for the web.

Install

npm install --save paintbricks

Usage

// import manager and tool
import {Manager, PenTool} from "paintbricks";

// Create a new manager
const manager = new Manager(canvasElem, canvasWidth, canvasHeight);

// create a new pen tool with color and stroke width
const penTool = new PenTool("blue", 5);

// set the current tool as the pen tool
manager.setTool(penTool);

// ... draw :)
1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago

1.0.5

5 months ago

1.0.4

5 months ago

1.0.3

5 months ago

0.0.2

6 years ago

0.0.1

6 years ago