• 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)

This Article Has Been Shared 437 Times!

Facebook Twitter Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Orthopaedic 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

  • HTTPS : Secure Hypertext Transfer Protocol

    HTTPS is an application protocol based on HTTP, for the secure transfer of data from Hyper Text, it is the secure version of HTTP.

  • Smartphone Security in the Cloud

    Smartphone Security in the Cloud is important as the unprotected smartphones using Cloud based applications can create security and privacy issues.

  • How To Start and Make a Multi-specialty Business Successful

    How To Start and Make a Multi-specialty Business Successful ? You might have dream, but might lack the other resources. Here is a comprehensive and easy guide.

  • DTH Service Providers in India : Seeking The Best Quality

    DTH Service provider in India are not limited in number. The limiting factor is the knowledge of the resellers.Here is evaluation and conclusion for HD Quality.

  • Simple Mail Transfer Protocol (SMTP)

    Simple Mail Transfer Protocol, usually abbreviated as SMTP is a communication protocol used to transfer electronic mail (email) to the email servers.

Additionally, 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

You can subscribe to our Free Once a Day, Regular Newsletter by clicking the subscribe button below.

Click To Subscribe

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 (20K Followers)
  • Twitter (4.9k Followers)
  • Facebook (5.8k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.2k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Cloud Computing : Cybersecurity Tips for Small Business Owners January 20, 2021
  • Arduino : Independently Blink Multiple LED January 18, 2021
  • What is a Loosely Coupled System? January 17, 2021
  • How To Repack Installed Software on Debian/Ubuntu January 16, 2021
  • Components of Agile Software Development January 15, 2021

 

About This Article

Cite this article as: Abhishek Ghosh, "HTML5 Drawing Board With Javascript," in The Customize Windows, January 3, 2014, January 20, 2021, https://thecustomizewindows.com/2014/01/html5-drawing-board-with-javascript/.

Source:The Customize Windows, JiMA.in

 

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Cookie Policy.

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

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

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