January 09, 2026

Week 16 - Raptor graphic window functions recovery

CLASS OBJECTIVE

Remember the main topics from the Second Period content, in order to be prepared for the forthcoming assessment 


SESSION 1

By this time, you should be very capable to create simple graphic algorithms in Raptor. You´ve learned to open  graphic windows in different sizes, draw lines, draw circles and fill closed spaces with colors, plus seize the Loop structures to create patterns.

In this first session you'll work in your notebook and in the second you're going to create an algorithm in Raptor.


Activity 1

As always, take out your notebook and write down the class title and objective. Then, write the questions and answer them. Please do not copy from another classmate; instead, make a genuine effort to understand and complete the work yourself.

Questionnaire

  1. What line of code should you type in a Call to open a graphics window that is 300 pixels high and 200 pixels wide?
  2. In a Cartesian plane, dimensions are always indicated in order. Is the first dimension the vertical (y) or the horizontal (x)?
  3. So, if you´d had to draw a purple filled circle exactly in the middle of the window mentioned in the first question, what line of code would you type in the Call symbol? (50 pixels radius)
  4. Regarding lines, how would you create two black intersecting lines in front of the circle? The first line goes from the upper-left corner of the window to the lower-right corner. The second goes from the lower-left corner to the upper-right corner. Write the two lines code.
  5. And regarding fill colors, how would you fill the four remaining white areas with yellow? Write the four lines of code

Do you need visual support? Watch the next image that shows the final outcome.


Once you finish, ask your first session teacher to check and sign this notes.




SESSION 2

Activity 2

Now, the next level challenge. Open Raptor and create the next image using Raptor. As usual, you´ll upload the final algorithm file to the Classroom post, but you'll also have to draw the image and the Raptor flowchart in your notebook.



  • First, draw the hand-made version of the image in your notebook before creating the Raptor file.
  • Use a 400x400 graphic window
  • Start by filling the window with black, then proceed to draw the lines
  • Leave the circle for last. You'll need the next info, but you'll have to understand what does it mean.
    • (200,142,92,yellow,0)
  • Analyze the final result and compare it with your own product
  • Once finished, save your file and upload it to Classroom

Don't forget to copy the flowchart form Raptor to your notebook.

Ask your second session teacher to check and sign this notes.

Good luck!