A Simple and Fast Canvas Drawing Pad For The Web | DrawingTablet.js

The drawingtablet.js the library creates a customizable drawing pad where users can draw sketches, doodle or jot notes directly within your website or application.

Users can quickly correct mistakes with the undo (Ctrl + Z) and redo (Ctrl + Y) functions, simulating the natural drawing process. In addition, users can instantly download their creations with Ctrl + E, or save their work with Ctrl + S. DrawingTablet is a simple and fast way to implement scribbling into your projects!

Must Read: Angular Module To Draw On Images | Ngx Image Drawing

How to make use of it:

1. Download the DrawingTablet.js library and include it in your project.

<script src="/lib/DrawingTablet.min.js"></script>

2. This will provide a 600 x 600 canvas with functions like undo (Ctrl + Z)redo (Ctrl + Y)download (Ctrl + E), autosave and, save (Ctrl + S):

const dt = new DrawingTablet();
const dt = new DrawingTablet("#canvas-container", {
  logs: true, // default: false
  fullscreen: true, // default: false
  brushSize: 5, //default: 2
  bg: "#ffffff",
  autosave: true, // default: true
});

3. Setter Methods

dt.bg = "color"
dt.brushSize = number
dt.brushColor = "color"

4. Getter Methods

dt.brushColor
dt.brushSize
dt.opts
dt.ctx
dt.canvas

5. General Method

dt.log()
dt.redraw()
dt.clearOnlyScreen()
dt.clear()
dt.undo()
dt.redo()
dt.save()
dt.clearSaved()
dt.drawFromSaved()
dt.download(filename?)

See Demo And Download

canvas-drawing-tablet

Official Website(hicodersofficial): Click Here

This superior jQuery/javascript plugin is developed by hicodersofficial. For extra advanced usage, please go to the official website.

Related Posts

Responsive-Multiple-Selection-Combo-Box-using-Bootstrap-3

Responsive Multiple Selection Combo Box using Bootstrap 3 | MagicSuggest

MagicSuggest is an easy-to-use jQuery plugin for creating a combo menu that allows you to select multiple items from a dropdown list with typing and auto-complete support….

material-design-tab-vanilla-js

Material Design Inspired Tab UI In Vanilla JavaScript

Material Design tab vanilla JS implements a material design-inspired tab component with a click ripple effect and an active sliding menu cursor. Must Read: Responsive Accessible Tabs…

countdown-timer-app

Simple Countdown Timer App In jQuery

The countdown is a front-end application that allows starting the countdown with two options: set a target date or write the number of countdown days. A countdown…

html5-animate-js

Add Animation to Your HTML5 Pages | animate.js

animate.js is a small JavaScript library that provides a convenient way to apply CSS animations powered by Animate.css to DOM elements without writing any CSS. Easily apply…

vue-responsive-parallax-cards

Responsive Hover Parallax Cards With Vuejs

Vue Responsive Parallax Cards Hover Create response cards with a scroll-triggered parallax effect in your Vue.js application. Must Read: jQuery Sliding Display Your Content Like a Deck…

pure-css-tabs-responsive

Responsive Pure CSS Only Accordion & Tabs Component

Responsive pure CSS accordion tabs and tabs will automatically convert to a vertical accordion interface on mobile devices. Must Read: Create Dynamic Accordion Giving JSON Data Using…

Leave a Reply

Your email address will not be published. Required fields are marked *