painter.js
Getting Started
Just create a new instance of Painter
, then set some options and now your canvas is ready for the fun.
var painter = new Painter(document.body, {
background: '#FFFFFF',
border: true,
colors: [
'#083D77',
'#F4D35E',
'#EE964B',
'#F95738'
],
height: 500,
width: 500
});
Options
-
background
{string} - Canvas background color. -
border
{boolean} - Enable or disable border of canvas. -
colors
{Array} - Colors available for pencils and shapes. -
height
{int} - Canvas height in pixels. -
width
{int} - Canvas width in pixels.