We are about to switch to a new forum software. Until then we have removed the registration on this forum.
For some reason processing having it's Y part of a general cartesian system upside down, has got me thinking all the time that my left is right, and right is left. My pong game paddles didn't help either.
Has this by chance happened to anyone else?
Answers
You can use
translate(width>>1, height>>1)
place the (0,0) coordinates at the center of canvas! ;))And if you want to flip the Y axis, you can use
scale(1, -1)
. You should probably read the reference fortranslate()
andscale()
first, though...you wrote:
err... Y is for top and bottom, not for left / right - so your remark seems a little weired...
you should really read the tutorials :
http://www.processing.org/tutorials/drawing/
I wouldn't also recommend the ideas of gotoloop and calsign
just use the coordinate system as it is and get used to it... ;-)
I know that it is weird precisely because it is top/bottom left/right :P
And yeah I'm just gonna be getting used to it! =D
One of these I'm just gonna have to go through the entire reference... And all the tutorials ;)
;-)
Well... Theres goes another ~24 hours straight of just sitting in my chair, and for the most part that I can remember... Coding.
Since this topic has something to do with ups and downs, the blue wave was supposed to be going the other direction :P
This is one of the things I worked on:
psst! Press 'm'! psst again! Click and drag with the mouse!