We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Part of code: noStroke(); fill(#f1c40f); stroke(255); rect(0,0,width,height); stroke(80); line(0,0,width,height);
Output:
Important part: Line and rectangle from top left
Answers
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 usepushStyle()
andpopStyle()
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.