Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 492 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 492 Bytes

fingerpaint

Canvas experiment that encourages painting with your fingers.

Install

npm install --save fingerpaint

Usage

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

// 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 :)