Here is some more learning stages :
code:
float ellipseX = 250;
float ellipseY = 250;
void setup(){
size (500,500);
}
void draw(){
background(255);
ellipseX = ellipseX + ((mouseX-ellipseX)/50.0);
ellipseY = ellipseY + ((mouseY-ellipseY)/50.0);
ellipse(ellipseX,ellipseY,50,50);
line(ellipseX,ellipseY,mouseX,mouseY);
}
Here I was learning how to create an object that looked like it was pulling another object round where ever the mouse went. I thought this was very handy because I want my final project to be like this. I like how an object can be dragged around.
My idea of project three was to create a massive ellipse in the middle of the screen and when an object passed that ellipse it would make a random wavey pattern as if it was in real life. So like what ever speed the mouse went through the wave would react with the same pace.
No comments:
Post a Comment