• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » HTML5 Drawing Board With Javascript

By Abhishek Ghosh January 3, 2014 1:54 am Updated on January 3, 2014

HTML5 Drawing Board With Javascript

Advertisement

HTML5 Drawing Board is possible to create with a Javascript Library named Literally Canvas. Like deviantArt, you can add a custom hand drawing field. Practically, this is the project, which is used in deviantArt Muro, but we are giving you a very easy example with Literally Canvas for creation of your own HTML5 Drawing Board. Please visit this App Page named Drawing Canvas (Our Facebook App in testing phase) for screenshots (Heroku Cloud can throw error in the App, its free not much to complain) and deviantArt Muro for extreme example. HTML5 Drawing Board can be created by only embedding few Javascripts – one need not to custom build the parts.

 

HTML5 Drawing Board With Javascript : The Coding Part

 

Version will not match with our example, but you might get more features :

Vim
1
https://github.com/literallycanvas/literallycanvas

We have nothing to hide unlike other bloggers – we always fully show the source code. Never ever use closed source sofwares offered by any blogger or website – does not matter how bigger the person is. The usage data frankly will be stolen and sold. Everyone knows these privacy issues now. Literally Canvas is intended to live inside your application in the way that works best for you. It does not take over your screen. It intentionally do not gobble up events. It tries to keep its UI to a minimum. So, you can defer the script loading. If you want to save, you need to do a bit work :

Advertisement

---

Vim
1
2
3
4
var ctx = $('canvas').get(0).getContext('2d');
ctx.fillStyle = 'rgb(255,255,0)';
ctx.fillRect(0, 0, 300, 300);
$('.literally').literallycanvas({preserveCanvasContents: true});

false makes it to set to unsaved.
Practically, you will need to create an HTML5 webpage and include the js and div classes. If you want to give an export option :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<div class="literally export"><canvas></canvas></div>
 
<form class="export">
  <input type="submit" data-action="export-as-png" value="Export as PNG">
</form>
 
<script>
  $(document).ready(function() {
    $('.literally.export').literallycanvas({
      backgroundColor: 'whiteSmoke',
      imageURLPrefix: '/_static/lib/img',
      onInit: function(lc) {
        $('[data-action=export-as-png]').click(function(e) {
          e.preventDefault();
          window.open(lc.canvasForExport().toDataURL());
        })
 
      }
    });
  });
</script>

This will give you a browser based button, you can change the appearance via CSS3.

HTML5 Drawing Board With Javascript

 

HTML5 Drawing Board With Javascript : Deployment Part

 

You can literally deploy it to any HTML5 webpage or within application or part of application. deviantArt comment is an example.

Tagged With how to add a drawing board to html , how to draw board in javascript , Java scripts draw ing board , javascript drawing board , onInit: function(lc)
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to HTML5 Drawing Board With Javascript

  • Embed Matrix Code Rain Animation Effect in WordPress Post

    One Can Create The Matrix Code Rain Animation Effect With Javascript on HTML5 Webpage and Customize According to Need. Here is resources.

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • WordPress & PHP : Different AdSense Units on Mobile Devices

    Here is How To Serve Different AdSense Units on Mobile Devices on WordPress With PHP. WordPress Has Function Which Can Be Used In Free Way.

  • Create Animated Progress Showing Favicon Like Pie Charts

    Create Animated Progress Showing Favicon Like Pie Charts, sounds odd but there is no way to describe this cute function that adds a virtual progress bar in Pie.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Market Segmentation in BriefSeptember 20, 2023
  • What is Booting?September 18, 2023
  • What is ncurses?September 16, 2023
  • What is JTAG in Electronics?September 15, 2023
  • iPhone 15 Pro Max Vs Samsung Galaxy S22/S23 UltraSeptember 14, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy