Advertisement
xeromino

Untitled

Jan 25th, 2016
393
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. function onGLC(glc) {
  2. glc.loop();
  3. glc.size(540, 540);
  4. glc.setDuration(2.5);
  5. glc.setFPS(30);
  6. // glc.setMode('single');
  7. // glc.setEasing(false);
  8. var list = glc.renderList,
  9. width = glc.w,
  10. height = glc.h,
  11. color = glc.color;
  12.  
  13. // your code goes here:
  14.  
  15. var w = 10,
  16. c = 0;
  17. step = 12;
  18.  
  19. while( w<350) {
  20. c++;
  21. list.addRect({
  22. x: width / 2,
  23. y: height / 2,
  24. w: w,
  25. h: [w,10],
  26. fill: false,
  27. stroke: true,
  28. strokeStyle: color.hsva(0,0,0,.8),
  29. lineWidth:1,
  30. //rotation: [0,30+c*5],
  31. rotation: [0,180],
  32. phase: c/120
  33. //phase: .5/c,
  34. //phase: Math.sin(w*0.001)
  35. });
  36. w += step;
  37. }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement