Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float xellipse=0;
- float yellipse=0;
- void setup()
- {
- size(800, 600);
- }
- void draw()
- {
- background(0);
- translate(width/2, height/2);
- xellipse=(width/2)*sin(millis()/100);
- ellipse( xellipse, yellipse, 50, 50);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement