# painterjs

> Painter.js is a JavaScript plugin that provides a simple canvas for users draw with some pencils, shapes and colors.

Latest version **0.1.1** (published 2016-02-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install painterjs
pnpm add painterjs
yarn add painterjs
bun add painterjs
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2016-02-02 |
| First published | 2016-02-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Luis Henrique Bizarro |
| Maintainers | lhbzr |
| Keywords | canvas, paint, javascript, js, plugin |

## Links

- npm: https://www.npmjs.com/package/painterjs
- Repository: https://github.com/lhbzr/painter.js
- Homepage: https://github.com/lhbzr/painter.js#readme
- Issues: https://github.com/lhbzr/painter.js/issues
- npm.io page: https://npm.io/package/painterjs

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.1.1 (latest) — 2016-02-02
- 0.1.0 — 2016-02-02

## README

## 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.](https://www.youtube.com/watch?v=pq-8eYMjEVM)

## Getting Started

Just create a new instance of `Painter`, then set some options and now your canvas is ready for the fun.

```js
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.

## License
[MIT](http://opensource.org/licenses/MIT) © [Luis Henrique Bizarro](https://lhbzr.com/).

---
_Source: https://npm.io/package/painterjs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
