Splitting Pizza
Using the VR Pen, respectively split ⅓, ¼, ⅕, and ⅛ from the pizza on the plate, and fill in the plate segment under each divided portion with a specific color to indicate the different fractions. (Please see the following image)

- Download the Splitting Pizza activity worksheet as a PNG file from this Google slideshow.
- To learn more about downloading .png files from slideshows, see this article.
- Select the Art Canvas+ Playground and upload the activity worksheet.
- To learn more about uploading images to the Art Canvas+ Playground, see this article.
- Code the VR Robot to draw lines to split ⅓ from the pizza, and color the plate segment under the divided portion yellow.
- Use the fraction and the multiply block to calculate the angle the robot needs to turn to split the pizza.
- Code the VR Robot to draw lines on the pizza and the plate using the Pen block.
- Drive the VR Robot into the plate segment, and use the [Fill area with color] block to color it yellow.
- Code the VR Robot to draw lines to split ¼ from the pizza, and color the plate segment under the divided portion pink.
- Code the VR Robot to draw lines to split ⅕ from the pizza, and color the plate segment under the divided portion blue.
- Code the VR Robot to draw lines to split ⅛ from the pizza, and color the plate segment under the divided portion green.
Helpful Hints
- The total degree measure of a circle is 360 degrees. Use the following formula to calculate the angle the robot needs to turn to split a specific fraction of the pizza.
Angle_To_Turn = 360 * Fraction
Use the divide block from the Operators category to express the fraction.

Matching Python command:
1 / 3
Use the multiply block from the Operators category to multiply any two values together and report the product.

Matching Python command:
360 * (1 / 3)
Use the fill area with color block from the Looks category to fill an area with a specified color. Move the red, green, and blue sliders in the block to mix primary colors to get blended colors.

Matching Python command:
pen.fill(255, 255, 82, 100)
- The dimension of the VEXcode VR Playground is 2000mm x 2000mm.
To learn more about using the VR Art Canvas +, see this article.