What does the following Pygame code draw? pygame.draw.polygon(screen,red,[[10,10],[200,10],[200,200],[10,200]],5) Select one: a. square b. triangle c. rhomboid d. ellipse e. pentagon   How many lines does the following Pygame code draw? for y_offset in range(0,200,20): pygame.draw.line(screen,red,[0,10+y_offset],[100,110+y_offset],5) Select one: a. 20 b. 9 c. 5 d. 10 e. 4

New Perspectives on HTML5, CSS3, and JavaScript
6th Edition
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Patrick M. Carey
Chapter4: Graphic Design With Css: Creating A Graphic Design For A Genealogy website
Section: Chapter Questions
Problem 12CP3
icon
Related questions
Question

What does the following Pygame code draw?

pygame.draw.polygon(screen,red,[[10,10],[200,10],[200,200],[10,200]],5)

Select one:

a.

square

b.

triangle

c.

rhomboid

d.

ellipse

e.

pentagon

 

How many lines does the following Pygame code draw?

for y_offset in range(0,200,20):
pygame.draw.line(screen,red,[0,10+y_offset],[100,110+y_offset],5)

Select one:

a.

20

b.

9

c.

5

d.

10

e.

Expert Solution
steps

Step by step

Solved in 2 steps with 3 images

Blurred answer
Knowledge Booster
External Style Sheet
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
New Perspectives on HTML5, CSS3, and JavaScript
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning