Codekids Lesson 3Circles |
In the last lesson, you learned how to open a window, color it, and make dots. Now, it's time to learn how to make a circle. In processing, the word for circle is ellipse. Your Fifth ProgramStart up Processing and copy this code into the program: size(400, 400);
You should see something like the purple circle above. The ellipse(); command has 4 numbers:
Hack your programGo into the code and change the numbers in the ellipse(); command. Make circles that are big, small, wide, and tall. Change the numbers in the fill(); command to change the color. Add more ellipse(); commands (before the fill command) to make more circles. BullseyeNow save your fifth program with a new name ("bullseye" might be good), and try to make a picture like this:
If you create something cool, copy it out of Processing and email it to me!
Here are some of the pictures we made from dots and circles last year:
|
|
|
|
|