//I am trying to learn how to draw objects in java. I’m getting better at it, but once I get an image on the screen I am having trouble manipulating it. The numbers I put in don’t make sense to how the shapes are turning out. At least to me they don’t. In algebra if you increase a number on the x axis it goes to the right and if you increase a number on the y axis it goes up. Thats not whats happening here. Can anyone explain to me how this works? I’m still new to java, so the more explanation and detail the better. I’m trying to take a couple of hours out a day over my summer to learn java and sometimes it gets a little frustrating. Any help is greatly appreciated.
Share
Here the
Co-ordinatesstart from theTOP LEFT SIDEof the screen, as as you increase value ofX, you will move towardsRIGHT SIDE, though as you increase the value ofY, you will moveDOWNWARDS. Here is a small example Program for you to understand this a bit better, simply click on it anywhere.