educative.io

Educative

https://www.educative.io/module/lesson/basics-java-programming/m2m16RgXgWn

Can somebody explain what these numbers mean in terms of format, I am taking a java course and Im not sure what any of these coordinates mean for building a circle? This is what it says:

// draw the eyes
c.stroke(“black”);
c.fill(“black”);
c.circle(100 - 20, 100 - 10, 5);
c.circle(100 + 20, 100 - 10, 5);

can somebody explain how the numbers work when setting the parameters for c.circle? what do any of these numbers mean?

Hi @Eli_Savage,

Thank you so much for reaching out to us. The syntax of circle method is circle(int xAxis, int yAxis, double radius) . But please make sure that your xAxis and yAxis are not greater than the size of Canvas c otherwise circle will be drawn but will not be shown to you.

I hope I have answered your question but if I missed anything, please do let me know. Thanks.