So when we are drawing a rectangle in java
g.drawRect(X, Y, 100, 10);
Is the rectangle formed from the top left corner and goes 100 units to the right and 10 down, or is there a center (X,Y) which extends 50 units to the left and right and 5 units to the top and bottom?
MadProgrammer
348k22 gold badges243 silver badges379 bronze badges
-
What about a circle, how does that work?user3741510– user37415102014年06月27日 01:27:49 +00:00Commented Jun 27, 2014 at 1:27
-
Perhaps you should try reading the JavaDocsMadProgrammer– MadProgrammer2014年06月27日 01:40:56 +00:00Commented Jun 27, 2014 at 1:40
1 Answer 1
The rectangle is formed from the top left corner and goes 100 units to the right and 10 down
Sign up to request clarification or add additional context in comments.
1 Comment
MadProgrammer
I know you're right, but can you sight evidence for that claim ;)
lang-java