Certified Animation Professional (CAP) Practice Test 2025 - Free Practice Questions and Exam Study Guide

Question: 1 / 400

In the command ellipse(200, 300, 150, 150), the second number in parentheses controls which variable?

x-coordinate

y-coordinate

In the command `ellipse(200, 300, 150, 150)`, the second number specifies the y-coordinate of the ellipse's center. In this context, the command is typically used in graphical programming environments, such as Processing or p5.js, where the ellipse function requires parameters to define its position and size.

The first number represents the x-coordinate, locating the center of the ellipse horizontally. The second number, which is the correct choice in this case, dictates the vertical positioning of the ellipse, or its y-coordinate.

This means that when you set the second parameter to 300, you are effectively placing the center of the ellipse 300 units down from the top of the drawing canvas. The remaining two numbers specify the width and height of the ellipse, with both set to 150, indicating a circle in this instance, since the width and height are equal.

Get further explanation with Examzify DeepDiveBeta

radius

diameter

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy