Skip to main content

Shape Animal

Create an algorithm to use [Drive for] and [Turn for] blocks and the VR Pen on the VR Robot to draw and color triangles and squares on the Art Canvas+ Playground to create a Shape Animal!

  • Select the Art Canvas+ Playground.
  • Code the VR Robot to draw and color a triangle or square on the playground.
    • Drive the VR Robot to your desired position.
    • Utilize the Pen on the VR Robot and use a loop to repeat the [Drive for] and [Turn for] commands for a set number of times to code the VR Robot to draw a triangle or square on the Canvas.
    • Drive the VR Robot into the shape area and use the [Fill area with color] block to fill in the shape area with a specific color. 
  • Code the VR Robot to draw and color more triangles or squares with various sizes at desired positions to create a Shape Animal.

Helpful Hints

  • Use the set pen color block from the Looks category to select a pen color. Move the red, green, and blue sliders in the block to mix primary colors to get blended colors. 

    VEXcode Set pen color block that reads 'set pen color' and the color is set to yellow.

    • Matching Python command:

      pen.set_pen_color_rgb(255, 255, 0, 100)
  • Use the fill area with color block from the Looks category to select a fill color. Move the red, green, and blue sliders in the block to mix primary colors to get blended colors.

    VEXcode Fill area with color block that reads 'fill area with color' and the color is set to yellow.

    • Matching Python command:

      pen.fill(255, 255, 0, 100)
  • To learn more about using the VR Pen, see this article.
  • Use the repeat block from the Control category to code the VR Robot to repeat the blocks contained inside for a set number of times.

    VEXcode Repeat block with the repeat amount set to 4.

    • Matching Python command:

      for repeat_count in range(4):
      	wait(5, MSEC)
  • Use the ‘Download Canvas Button’ on the Art Canvas + Playground to save your work of art to share with others! To learn more about using the VR Art Canvas +, see this article. 
  • Be creative! Use your knowledge to create a Shape Animal. For more ideas about designing the Shape Animal, please see the following images.
First of three example shape animals drawn on the Art Canvas Plus Playground. This shape animal looks like a chick.

 

Second of three example shape animals drawn on the Art Canvas Plus Playground. This shape animal looks like a fox.

 

First of three example shape animals drawn on the Art Canvas Plus Playground. This shape animal looks like a chicken.