0.1.1 • Published 8 years ago
painterjs v0.1.1
painter.js
:art: Painter.js is a JavaScript plugin that provides a simple canvas for users draw with some pencils, shapes and colors. This also makes you become just a painter to do crappy art.
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.