2

Holiday Card

Now that you’re a rectangle-drawing champion, you’ll draw some other shapes and put them to good use. What better way to practice basic drawing than by creating a holiday card?

Through the metaphor of a paper collage, you’ll learn how to compose an image using shapes and lines in Processing. I’ll also give you a deeper look at the line() function and how you can modify lines in different ways. Put on your artist’s hat, because here we go!

GATHER YOUR MATERIALS

• Colored pencils

• Graph paper

DRAWING MORE SHAPES!

You can draw a number of basic shapes in Processing, and each shape is always defined by points on the Cartesian coordinate plane. Here is a rundown of the basic geometric shapes and the parameters that you need to pass ...

Get The SparkFun Guide to Processing now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.