CLASS OBJECTIVE
Learn to use the DRAW_BOX() call and practice the loop programming structure, using the graph window in Raptor, by creating given images, using boxes.
INTRODUCTION
Today, you'll learn how to use the draw_box() function and create two different products, the first with some assistance and the second completely alone.
draw_box(x1,y1,x2,y2,color,filled/unfilled)
x1,y1 are the coordinates for the first corner of the box. (left lower corner)
x2,y2 are the coordinates for the opposite corner of the box. (right upper corner)
For example, in a 500x500 graph windows we can use the draw_box Call like this:
draw_box(150,150,350,350,1,1)
and the result should look like:
ACTIVITY
Let's try a simple activity. Look at the image below and try to create it using Raptor's draw_box instruction.- This is a 400X400 graph window.
- You must consider the white spaces between the boxes.


