We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hey,
I thought it would be pretty simple to create a line which is proportional to the screen, however it didnt work!
I tried:
line(windowWidth/20,windowHeight/0,windowWidth/35,windowHeight/25);
however it didnt work. Please help!
Answers
Sorry... stupid question. Got it working lol.
you could also use
map()
when you want to calculate a value from one range to another range proportionally (keeping its percentage within both ranges)