Tuesday, September 25, 2012

How to Draw with HTML 5 Canvas - Treehouse Blog

How to Draw with HTML 5 Canvas - Treehouse Blog: "BASIC DRAWING
So, let’s get started with an example to demonstrate the basics. We’re going to draw a smiley face, similar to the one on the Acid2 reference rendering.

If we think about the face as a set of basic shapes, we have:

A circle, with a black stroke and yellow fill for the face.
2 circles with a black stroke and white fill and with an inner circle of filled green for the eyes.
A curve for the smile.
A diamond for the nose."

'via Blog this'