December 17, 2025

The last 2025 Class - 3E and 3D

 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.



  • Do you recall which logo is this? If you do, add the spots using the draw_circle instruction. 
  • For the last, you may try adding the brand name by using two new instructions.
    • DISPLAY_TEXT()
    • SET_FONT_SIZE()
  • Ask CHAT GPT  how to use them and add de text DOMINO'S