Live data from Hacker News

(Literally) Drawing the HTML 5 Logo in Canvas with Javascript

richwchan.com

1–10 of 14 posts

Re: (Literally) Drawing the HTML 5 Logo in Canvas with Javascript

#4
I don't understand why people are impressed by HTML Canvas demos. It's like getting impressed by a calculator adding two numbers together. Or being impressed by a for loop statement in a language. Or being impressed by an fopen statement to read files.

A collection of drawRect, drawCircle and setBrushColor calls isn't impressive just because it's done in JS. That's what graphics libraries are supposed to do. Maybe I'm missing something here...

Re: (Literally) Drawing the HTML 5 Logo in Canvas with Javascript

#5

Click the redraw button a bunch of times while it's still drawing for an interesting effect.

Yep.. Apparently calling jquery ui's disable method doesn't disable the handler -- guess I should've read the docs...

Anyway, thanks for pointing it out. I will try to fix it when I get home. Before then, have fun with the "interesting effects". =)

Re: (Literally) Drawing the HTML 5 Logo in Canvas with Javascript

#6
post #5

Click the redraw button a bunch of times while it's still drawing for an interesting effect.

Yep.. Apparently calling jquery ui's disable method doesn't disable the handler -- guess I should've read the docs... Anyway, thanks for pointing it out. I will try to fix it when I get home. Before then, have fun with the "interesting effects". =)

How did you generate the "var levelX" arrays?

Re: (Literally) Drawing the HTML 5 Logo in Canvas with Javascript

#9

I don't understand why people are impressed by HTML Canvas demos. It's like getting impressed by a calculator adding two numbers together. Or being impressed by a for loop statement in a language. Or being impressed by an fopen statement to read files. A collection of drawRect, drawCircle and setBrushColor calls isn't impressive just because it's done in JS. That's what graphics libraries are supposed to do. Maybe I'…

You have (understandably) been led astray by a poorly considered title.

The article demonstrates a vector based 'hand drawing' algorithm that happens to use the HTML5 logo and be implemented in javascript with canvas.

Unfortunately it doesn't appear to implement a generalised library for scruffy drawing.

Post reply on HN