Transcript
Shaping Things Up
What Shapes Are There?
Try the code above. Which shape appears on the top of the others?
Colorful Creations
The picture above illustrates the RGB color model. Red, green, and blue light are added together to produce different colors.
- If red and green light overlap, the result is yellow.
fill(255, 255, 0) // Set the filling color to yellow
- If blue and red light overlap, the result is magenta.
fill(255, 0, 255) // Set the filling color to magenta
- If green and blue light overlap, the result is cyan.
fill(0, 255, 255) // Set the filling color to cyan
- If all the colored lights overlap, the result is white.
fill(255, 255, 255) // Set the filling color to white. You can do the same with the command "fill(255)"
- If there's no light, the color is black.
fill(0, 0, 0) // Set the filling color to black. You can do the same with the command "fill(0)"
What is the filling color of the ellipse?
What is the filling color of the triangle?
What is the outline color of the triangle?