W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2006

[whatwg] "canvas" tag and animations ?

From: Andrew Fedoniouk <news@terrainformatica.com>
Date: Tue, 16 May 2006 14:10:14 -0700
Message-ID: <002d01c6792d$20a1ed50$c302000a@internal.toppro.net>

----- Original Message ----- 
From: "Ian Hickson" <ian@hixie.ch>
To: "Charles Iliya Krempeaux" <supercanadian at gmail.com>
Cc: "WHAT Working Group Mailing List" <whatwg at whatwg.org>
Sent: Tuesday, May 16, 2006 8:23 AM
Subject: Re: [whatwg] "canvas" tag and animations ?


| On Mon, 13 Jun 2005, Charles Iliya Krempeaux wrote:
| >
| > Now, I know that people are going to want to create animations using
| > this.  So, what I was wondering is if there are any built in facilities
| > for this?  (I didn't notice anything in the spec for it.)
|
| Just redraw the canvas. :-)
|
|
| > For example, is there a method of "double buffering"?  So that you don't
| > have to watch the canvas being "drawn" right before your eyes. For slow
| > systems, or complex drawing operations, this can become a problem.
|
| Canvases are automatically double-buffered.

Why? Is this a requirement?
If you need double-buffering then create an Image, draw on it and render image 
in onPaint method or so.
This is more flexible at least.

Andrew Fedoniouk.
http://terrainformatica.com
Received on Tuesday, 16 May 2006 14:10:14 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:27 UTC