Magic Flower
Design an algorithm to use [Drive for] and [Turn for] blocks and the VR Pen on the VR Robot to create a six-fold symmetry magic flower on the Art Canvas+ Playground.
- Select the Art Canvas+ Playground.
- Design an algorithm to create a six-fold symmetry magic flower.
- Use the VR Pen to fill the Playground area with a background color.
- Use a variable to store the number that represents a specific color.
- Select a Pen color according to the variable value. 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 diamond shape petal on the Canvas.
- Change the variable value to represent a different color. Turn the VR Robot for certain degrees to get ready to draw the next petal.
- Use a loop to code the VR Robot to repeat the actions for a set number of times to draw six petals in various colors and directions to create a six-fold symmetry magic flower.
Helpful Hints
- The angle the robot needs to turn to draw a six-fold symmetry flower is 60 degrees:
- The angle to turn = 360 / symmetry = 360 / 6 = 60
Use My Block from the My Blocks category to create a custom block to code the VR Robot to select a specific Pen color according to the variable value and use it in the project. The My Block makes the project shorter and more easily readable.

Matching Python command:
def chooseColor():
- For help with using My Blocks in the project, please select the “TUTORIALS” button in VEXcode VR and choose the My Blocks Tutorial.

- For more information about using My Blocks in VEXcode VR, please see this article.
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.