eriknau

25Days-10

Dec 10th, 2015
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function onGLC(glc) {
  2.     glc.loop();
  3.     // glc.size(400, 400);
  4.     glc.setDuration(1);
  5.     // glc.setFPS(20);
  6.     glc.setMode("single");
  7.     glc.setEasing(false);
  8.     // glc.setMaxColors(256);
  9.  
  10.     var list = glc.renderList,
  11.         width = glc.w,
  12.         height = glc.h,
  13.         color = glc.color;
  14.  
  15. //stretch
  16.     list.setCurrentScene(1);
  17.      list.addCircle({
  18.         x: width/2,
  19.         y: height/2,
  20.         stroke: true,
  21.         strokeStyle: "red",
  22.         strokeWeight: 5,
  23.         fill: false,
  24.         startAngle: -90,
  25.         endAngle: [-90,190],
  26.         rotation: [-90,180]
  27.     })  
  28. // contract
  29.     list.setCurrentScene(2);
  30.     list.addCircle({
  31.         x: width/2,
  32.         y: height/2,
  33.         stroke: true,
  34.         strokeStyle: "red",
  35.         strokeWeight: 5,
  36.         fill: false,
  37.         startAngle: [-90,160],
  38.         endAngle: 180,
  39.         rotation: [-180,90]
  40.     })
  41. //stretch
  42.     list.setCurrentScene(3);
  43.      list.addCircle({
  44.         x: width/2,
  45.         y: height/2,
  46.         stroke: true,
  47.         strokeStyle: "green",
  48.         strokeWeight: 5,
  49.         fill: false,
  50.         startAngle: -200,
  51.         endAngle: [-180,90],
  52.         rotation: [-270,0]
  53.     })  
  54. // contract
  55.     list.setCurrentScene(4);
  56.     list.addCircle({
  57.         x: width/2,
  58.         y: height/2,
  59.         stroke: true,
  60.         strokeStyle: "green",
  61.         strokeWeight: 5,
  62.         fill: false,
  63.         startAngle: [-180,90],
  64.         endAngle: 110,
  65.         rotation: [0,270]
  66.     })
  67. //stretch
  68.     list.setCurrentScene(5);
  69.      list.addCircle({
  70.         x: width/2,
  71.         y: height/2,
  72.         stroke: true,
  73.         strokeStyle: "yellow",
  74.         strokeWeight: 5,
  75.         fill: false,
  76.         startAngle: 90,
  77.         endAngle: [110,360],
  78.         rotation: [-90,180]
  79.     })
  80. // contract
  81.     list.setCurrentScene(6);
  82.     list.addCircle({
  83.         x: width/2,
  84.         y: height/2,
  85.         stroke: true,
  86.         strokeStyle: "yellow",
  87.         strokeWeight: 5,
  88.         fill: false,
  89.         startAngle: [-270,0],
  90.         endAngle: 20,
  91.         rotation: [-180,90]
  92.     })
  93. //stretch
  94.     list.setCurrentScene(7);
  95.      list.addCircle({
  96.         x: width/2,
  97.         y: height/2,
  98.         stroke: true,
  99.         strokeStyle: "blue",
  100.         strokeWeight: 5,
  101.         fill: false,
  102.         startAngle: 0,
  103.         endAngle: [20,270],
  104.         rotation: [90,360]
  105.     })
  106.     //contract
  107.     list.setCurrentScene(0);
  108.     list.addCircle({
  109.         x: width/2,
  110.         y: height/2,
  111.         stroke: true,
  112.         strokeStyle: "blue",
  113.         strokeWeight: 5,
  114.         fill: false,
  115.         startAngle: [0,270],
  116.         endAngle: 280,
  117.         rotation: [0,270]
  118.     })
  119. }
Advertisement
Add Comment
Please, Sign In to add comment