Advertisement
Guest User

Untitled

a guest
May 5th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. float x;
  2. float y;
  3. float a = 0;
  4. float f = 0.2;
  5.  
  6. void setup() {
  7. size(400, 400);
  8. stroke(255, 255, 255);
  9. strokeWeight(2);
  10. background(0);
  11. }
  12.  
  13. void draw() {
  14. translate(width/2, height/2);
  15. a+=0.025;
  16. float x = 100 * sin(a);
  17. float y = 100 * cos(a * f);
  18. point(x, y);
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement