Why does it just move diagonally?
in
Programming Questions
•
2 years ago
I just started with processing today and i can not sleep untill this stupid quad moves everywhere not just diagonally..!
thank u in advance! ;)
int xPos1,yPos1;
void setup()
{
size(300,300);
smooth();
strokeWeight(3);
}
void draw()
{
background(0);
xPos1=mouseX;
yPos1=mouseX;
//rect 1 grün
stroke(0,255,0);
noFill();
rectMode(CENTER);
rect(xPos1,yPos1,80,80);
}
1