4.0.2 • Published 3 years ago

doodlepad v4.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

DoodlePad

good doodle pad

A simple doodle pad to use with canvas contexes

Demo

demo

Notes

Make sure the canvas container has this css applied to it

touch-action: none;

to prevent strokes from being mis-inputed and cancelled

Example

import { PaintingContext } from 'https://unpkg.com/doodlepad'

const canvas = document.createElement('canvas')
canvas.width = window.innerWidth
canvas.height = window.innerHeight

const ctx = canvas.getContext('2d')
const paint = new PaintingContext(ctx)

paint.strokeSize = 5
paint.strokeSmoothing = 0.5

document.body.appendChild(canvas)
4.0.2

3 years ago

4.0.1

3 years ago

4.0.0

3 years ago

3.0.0

4 years ago

2.0.3

4 years ago

2.1.1

4 years ago

2.1.0

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.2.0

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.2

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago