We are about to switch to a new forum software. Until then we have removed the registration on this forum.
How to make and move with this curve with mouseX and mouseY from the middle of display ???
Take a look at the curves section of the reference. Please try something and post a MCVE if you get stuck. Good luck.
Now i have done this... but how to flip to other sides ?
void setup(){ size(600,300); } void draw(){ background(25); noFill(); stroke(255); bezier(0,0,mouseX,0,0,mouseY,mouseX,mouseY); }
OK... xd I create a code thx for everyone <3
int x = 300, y = 150; void setup(){ size(600,300); } void draw(){ background(25); noFill(); stroke(255); bezier(x,y,mouseX,y,x,mouseY,mouseX,mouseY); fill(255,0,0); noStroke(); ellipse(x,y,15,15); ellipse(mouseX,mouseY,15,15); ellipse(mouseX,y,15,15); ellipse(x,mouseY,15,15); }
Answers
Take a look at the curves section of the reference. Please try something and post a MCVE if you get stuck. Good luck.
Now i have done this... but how to flip to other sides ?
OK... xd I create a code thx for everyone <3