We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Part of code:
Important part: Line and rectangle from top left
Oh. Im sorry, I' beginner. I was using rectMode(CENTER) and i forgott about it.
@Meldiron -- Ah -- glad you figured it out!
In larger code blocks, one way to avoid strange problems from rectMode() (or the other _Mode functions) is to use pushStyle() and popStyle() to isolate the rectMode only with the part of your code where you need to use it. All other code will then use the default mode, so you won't be surprised.