NEW
Font size
WorksheetsPython Shapes and Colors
Total questions: 10
Worksheet time: 5mins
Which line contains color tuples? A: r = pygame.Rect(0, 0, 400, 400) B: pygame.draw.ellipse(window, (0, 255, 255), r)
A
B
What color is represented by the tuple (0, 0, 0)?
black
white
green
blue
What color is represented by the tuple (255, 255, 255)?
black
white
green
blue
Which of the following shapes must be defined on a separate line before you can draw it?
circle
line
rectangle
polygon
The three values in a color tuple stand for what three colors?
black white grey
red green blue
yellow magenta cyan
red blue yellow
A gradient is a
line applied to the shape of the object
gradual transition from one color to another
coding function that calls the library
shadowing of the variable
In Python, to draw a shape with a border, you draw the same shape _______.
once
twice
3 times
not at all
What is the line of code used to draw a polygon?
draw = polygon
polygon initiated
pygame.draw.polygon()
draw.line
What shapes can you draw in Python? (choose all that apply)
circle, triangle, ellipse, square
square, circle, polygon, octagon
ellipse, polygon, circle, triangle
circle, ellipse, rectangle, polygon
Colors are represented by the color tuple _________
(g,b,m)
(r, g, b)
(e,t,g)
(r,g,x)
