Top "Canvas" questions

Canvas is a generic term for the drawing surface used with many free-form graphics output APIs.

Draw on HTML5 Canvas using a mouse

I want to draw on a HTML Canvas using a mouse (for example, draw a signature, draw a name, ...) How …

html canvas gesture gesture-recognition
How to add image to canvas

I'm experimenting a bit with the new canvas element in HTML. I simply want to add an image to the …

javascript html canvas
How do I add a simple onClick event handler to a canvas element?

I'm an experienced Java programmer but am looking at some JavaScript/HTML5 stuff for the first time in about a …

javascript html canvas event-handling onclick
How to center canvas in html5

I've been searching for a solution for a while now, but haven't found anything. Maybe it's just my search terms. …

html canvas css resize
Chart.js canvas resize

In (Android WebView HTML5 canvas error) i posted a question regarding plotting graphs using Graph.js library. The problem i …

html canvas chart.js
Drawing an SVG file on a HTML5 canvas

Is there a default way of drawing an SVG file onto a HTML5 canvas? Google Chrome supports loading the SVG …

html canvas svg
Split string in JavaScript and detect line break

I have a small function I found that takes a string from a textarea and then puts it into a …

javascript string canvas split line-breaks
HTML5 Canvas background image

I'm trying to place a background image on the back of this canvas script I found. I know it's something …

html canvas html5-canvas computer-science
how to save canvas as png image?

I have a canvas element with a drawing in it, and I want to create a button that when clicked …

javascript html canvas
html5 - canvas element - Multiple layers

Without any extension library, is it possible to have multiple layers in the same canvas element? So if I do …

html canvas layer