Kip,
Thanks for the debugging help! The only way I have to test on IE is on
my wife's netbook, and I can't do that at work. I assumed the problem
with IE9 had to do with my use of things like window.innerWidth, etc.
Have you confirmed that the bookmarklet does work in IE9 if you use it
on a page with the correct doctype?
David
On 12/09/2010 03:20 PM, Kip Lawrence wrote:
Hi David,
Nice demo!
I notice you haven't taken the time to understand why your snowflakes do
not work in IE9.
To get your code working in IE9 you must use an HTML5 doc type. Such as:
<!DOCTYPE html>
See:
http://blogs.msdn.com/b/ie/archive/2010/09/08/debugging-common-canvas-issues.aspx
-Kip
On Thu, 2010-12-09 at 12:52 -0800, David Flanagan wrote:
I've posted some example code from my upcoming book Canvas Pocket
Reference at my blog:http://www.davidflanagan.com/2010/12/let-it-snow.html
It demonstrates how to draw Koch snowflake fractals in a<canvas> tag,
and relies almost completely on canvas transformation methods:
translate(), scale(), and rotate().
If you're interested in scripted client-side graphics, you might find
this interesting. Plus there is a fun bookmarklet to try out (but it
includes commercial promotion for my book... :-)
David Flanagan
_______________________________________________
JSMentors mailing list
[email protected]
http://jsmentors.com/mailman/listinfo/jsmentors_jsmentors.com
List Archive:
http://jsmentors.com/pipermail/jsmentors_jsmentors.com/
_______________________________________________
JSMentors mailing list
[email protected]
http://jsmentors.com/mailman/listinfo/jsmentors_jsmentors.com
List Archive:
http://jsmentors.com/pipermail/jsmentors_jsmentors.com/