Pixels - Simple Shapes

3 important questions on Pixels - Simple Shapes

What is the default mode of ellipse(); ?

The default mode of ellipse(); is CENTER.

Explain the following lines:

ellipseMode(CORNER);
ellipse(a, b, c, d);  

The setting of drawing an ellipse is switched to CORNER. So, in that case the a will be x-coordinate and b the y-coordinate of the left "upper corner". The c will be the width and d the height of the ellipse.

Explain the following lines:

ellipseMode(CORNERS);
ellipse(a, b, c, d);  

In the case of mode CORNERS the a will be the x-coordinate of the left "upper corner" and b is the y-coordinate of this "corner". Then c and d will be respectively be the x-coordinate and the y-coordinate of the right "bottom corner".

The question on the page originate from the summary of the following study material:

  • A unique study and practice tool
  • Never study anything twice again
  • Get the grades you hope for
  • 100% sure, 100% understanding
Remember faster, study better. Scientifically proven.
Trustpilot Logo