Reading: Chapter 2
Study this chapter actively. It provides the basic tools for many of the geometric sketches that you’ll create in the early weeks of this course.
The following exercises are numbered to match the sections in the text. Make sure that you can do the exercise(s) for each section before you move on to the next:
Create code that draws a point in the middle and in each of the four corners of a canvas, as shown here:
Note that the dots may appear smaller than the ones in this sample image.
Create code that draws a rectangle, ellipse and line of any location and size. Here’s an example:
Create code that draws a smooth ellipse with 5-pixel-wide lines, as shown here:
Redo the previous ellipse but make it fuchsia, as shown here:
Create code that prints Hello in the font of your choice. Here’s an example using a Comic Sans 48-point font:
Redo your previous program, but add a comment at the beginning of the program saying “This program was created by ...”. The resulting program should produce the same sketch as it did before.
As with the previous chapter guide, you do not submit the answers to these questions but you can post questions and answers to this week’s discussion forum.