200k views
2 votes
Var faceS = 100; var mouthS = 30; ellipse(200, 200, faceS, faceS); ellipse(200, 220, mouthS, mouthS); How wide is the second ellipse that draws the mouth?

1 Answer

5 votes
The first two parameters of the ellipse function are the beginning x and y coordinates. The last two are the width and height of the ellipse. The second ellipse starts at (200px, 200px) and has a width and height equal to mouthS. We are given mouthS as 30, therefore the mouth is 30 pixels wide.
User Bisko
by
5.1k points