Git Product home page Git Product logo

simple-html5-drawing-app's People

Contributors

williammalone avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

simple-html5-drawing-app's Issues

Responsive?

Hi, is it possible to make the canvas responsible? It would be nice to use it within an app.

Thanks

Touch Support doesn't appear to be working

I have scripted using app-script, but this is my first attempt to really create a full blown app. So it is very possible that it is user error.

I got your code running on a touch-screen chromebook (using Chrome Dev Editor), and it launches and runs fine with a mouse. But when I use the touch-screen to draw it doesn't work. I am only able to click the other elements like color, and size, but drawing doesn't work with touch, only the mouse.

Draw shapes, and move them around, single canvas

Hi there,
I was reading your tutorial here and then was looking for the comments section but only found your github - http://www.williammalone.com/articles/create-html5-canvas-javascript-drawing-app/

I am trying to create a canvas editor as this firefox addon has done - https://addons.mozilla.org/en-US/firefox/addon/nimbus-screenshot/?src=userprofile

They draw shapes on a single canvas, and when i mouse over that shape they show "end points" on it, and i can click and drag the end points to resize/reshape arrow or square or circle. And move it around even. They have done this magic all on a single canvas. I was hoping to do the same too, but couldn't find a tutorial as nice as yours.

Could you please write about how they did this?

Thanks

toDataURL only grabs half the image...

Hey. Awesome work.

I am trying to implement this in my website, but when i try to save the canvas value and display it in the browser (or in a base64 decoder) both only shows half the image.

I tried with other drawing applications and the value gets displayed correctly in the browser and base64 decoder.

var dataurl = canvas_simple.toDataURL(); console.log(dataurl);
If you copy the console.log value and paste it in your browser URL or even a base64 decoder (https://codebeautify.org/base64-to-image-converter) you can see that the full image isn't there.

Save into DB

Hi,

I need to know if the canvas result can saved into MySql Database like a the path of the image created.

textures

hi,
in this app, when you draw with pastel and want to draw different area with marker, you can not. once you choose other texture, new texture applies to your drawing. is there any way to use different textures in the same drawing. maybe you can add more textures. for example wood, brick, marble etc.
thanks...

When Page Refresh the drawing or the drawing line moveup for every refresh

Hi @williammalone
I was reading your tutorial here and then was looking for the comments section but only found your github - http://www.williammalone.com/articles/create-html5-canvas-javascript-drawing-app/

First at All thanks for the Code Every things work fine Great Job
so the minor issue is when page is refresh the drawing line move-up (like 5mm height) can you guide me how to resolve this not to move-up the drawing line.

I would Appreciate if you could Help Us

Thanks & Regards
Suresh

Prevent flickering in Firefox

Thanks for the great tutorial.

But I have found an issue: when testing this in Firefox (v 21.0) the canvas flickered a lot. This issue can be solved by simply moving one line in the code.

Move 'context.save()' from line 223 to line 130. Right before calling clearCanvas().

This stops FF from redrawing a blank canvas when calling context.clearRect() from within the clearCanvas-function.

The application still seems to work properly in IE and Chrome and no longer flickers in FF. (I haven't tested with any other browsers.)

Thanks again for the great tutorial!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.