Skip to main content

Lesson 1: Drawing with the Pen

In this Lesson, you will create a text project that uses the Pen tool on a VR Robot to draw two different sized squares on the Art Canvas Playground!

VR Art Canvas Playground with two black squares of different sizes drawn on it. The VR robot is stopped at the upper left corner of the smaller square, showing where it stopped when the project was finished.

Learning Outcomes

  • Identify how to set the Pen position using the move command.
  • Identify how to use the set_pen_color command to change pen colors to create black, red, green, or blue lines.

Create a New Project

A new text project must be created before beginning Unit 3 Lesson 1.

Follow these steps to create a new VEXcode VR Python text project.

  • Launch VEXcode VR at vr.vex.com.
  • Once you launch VEXcode VR, select "File", then "New Text Project."
    VEXcode VR workspace, with the File menu dropdown opened. The choices in the menu read, New Blocks Project, New Text Project, Load from Your Device, Open Examples, Save To Your Device, What's New, About and Logout. The New Text Project option is highlighted with a red box.
  • You will be prompted to 'Choose a Python Playground'. Select the Art Canvas Playground. Art Canvas Playground selection tile.
 

Name Your Project

  • To name your project, select the project name box.
    VEXcode VR toolbar with the name box highlighted, showing where to click to begin naming your project.
  • Enter the new project name Unit3Lesson1, and select “Save.”
    Project name dialog box open, with Unit 3 Lesson 1 typed into it. The save button at the bottom right is highlighted with a red box.

Select the Next button to continue with the rest of this Lesson.