Comments on: An introduction to the Canvas 2D API https://stevefaulkner.github.io/html5doctored/an-introduction-to-the-canvas-2d-api/ helping you implement HTML5 today Wed, 30 Mar 2016 14:18:08 +0000 hourly 1 By: Rogama https://stevefaulkner.github.io/html5doctored/an-introduction-to-the-canvas-2d-api/#comment-177345 Thu, 31 Jul 2014 19:16:02 +0000 http://html5doctor.com/?p=2264#comment-177345 Hi!!
Excelent tutorial, but… How to use the method Bitmap()??

thank regard

]]>
By: Ben Shepherd https://stevefaulkner.github.io/html5doctored/an-introduction-to-the-canvas-2d-api/#comment-34387 Sun, 12 May 2013 14:55:38 +0000 http://html5doctor.com/?p=2264#comment-34387 I have made some cool ball physics + collisions using Canvas

http://www.passion4web.co.uk/ben/collision1_3.html

]]>
By: Anirudh https://stevefaulkner.github.io/html5doctored/an-introduction-to-the-canvas-2d-api/#comment-32261 Tue, 19 Mar 2013 06:53:14 +0000 http://html5doctor.com/?p=2264#comment-32261 This is good and is little summary about the canvas. But want advanced tutorial like two different people working on same canvas and can see the changes made by other on that canvas.

]]>
By: anamitra https://stevefaulkner.github.io/html5doctored/an-introduction-to-the-canvas-2d-api/#comment-20616 Wed, 14 Dec 2011 12:51:43 +0000 http://html5doctor.com/?p=2264#comment-20616 When we’re drawing a line or a pie chart using canvas,how can we show a tooltip for every individual section of a pie or every line of a line chart?Please suggest.I’m currently using filament group for drawing charts,which uses canvas implicitly.

]]>
By: Jamna https://stevefaulkner.github.io/html5doctored/an-introduction-to-the-canvas-2d-api/#comment-16930 Tue, 26 Jul 2011 12:11:01 +0000 http://html5doctor.com/?p=2264#comment-16930 Hi ,
Great article !!!..Remy
thanks for it.

I am learning HTML 5 in these days… so little confuse on some places …

what is “drawing context” exactly ?

what is the role of getcontext() method?

why we always pass the string “2d” to the getContext() method, why not”3d”?

Is there a 3-D canvas?

if anybody can give me answers of these question…it will help me to understand this element.

thanks

]]>
By: Monkier https://stevefaulkner.github.io/html5doctored/an-introduction-to-the-canvas-2d-api/#comment-15141 Thu, 09 Jun 2011 13:04:26 +0000 http://html5doctor.com/?p=2264#comment-15141 @Remy

I looked at the example code. By omitting the other elements in the example code, I had to make assumptions and that is what I did.

Anyway, my fault for not knowing any javascript.

]]>
By: Remy Sharp https://stevefaulkner.github.io/html5doctored/an-introduction-to-the-canvas-2d-api/#comment-15136 Wed, 08 Jun 2011 21:56:27 +0000 http://html5doctor.com/?p=2264#comment-15136 @monkier – actually if you actually looked at the example code samples provided in this article, you would have seen the JavaScript was below the canvas element so you don’t need the window.onload.

In fact, you shouldn’t use window.onload at all – maybe it’s time to learn JavaScript since you even admit you don’t know it?

]]>
By: Moniker https://stevefaulkner.github.io/html5doctored/an-introduction-to-the-canvas-2d-api/#comment-15135 Wed, 08 Jun 2011 20:29:22 +0000 http://html5doctor.com/?p=2264#comment-15135 It would have been helpful if you had included this code between the javascript code for canvas:

window.onload = function() {

}

I do not know any javascript and wasted quite some time trying to figure out what I was doing wrong.

Thanks

]]>
By: Remy Sharp https://stevefaulkner.github.io/html5doctored/an-introduction-to-the-canvas-2d-api/#comment-14043 Fri, 28 Jan 2011 14:32:45 +0000 http://html5doctor.com/?p=2264#comment-14043 @bhupi – there’s no such thing as an “object” WRT the canvas. If it’s painted on the canvas, then toDataURL will give you an image representation of it. Anything behind the canvas is just that: *behind* the canvas, and therefore not part of it.

]]>
By: bhupi https://stevefaulkner.github.io/html5doctored/an-introduction-to-the-canvas-2d-api/#comment-14041 Fri, 28 Jan 2011 13:00:28 +0000 http://html5doctor.com/?p=2264#comment-14041 Hey… Cool..

but what, if the background of canvas is some external image with any format and drawn on the canvas and some graphic drawn on foreground. How to fetch the complete set of objects on the canvas?

As far as I know the “toDataURL” method returns objects which are created graphic kind of something but not Image ?

]]>