eriknau

Gif Loop Coder Flow

Nov 24th, 2015
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function onGLC(glc) {
  2.     glc.loop();
  3.     glc.styles.backgroundColor = "#000000";
  4.     // glc.playOnce();
  5.     // glc.size(400, 400);
  6.     // glc.setDuration(5);
  7.     // glc.setFPS(20);
  8.     glc.setMode("single");
  9.     // glc.setEasing(false);
  10.     // glc.setMaxColors(256);
  11.     var list = glc.renderList,
  12.         width = glc.w,
  13.         height = glc.h;
  14.     var num = 4,
  15.         minSize = 20,
  16.         maxSize = 60;
  17.  
  18. for(var i = 0; i < num; i++) {
  19.         list.addText({
  20.         text: ("frow"),
  21.         x: 100,
  22.         y: [300,100],
  23.         fontSize: [minSize,maxSize],
  24.         fillStyle: ["blue","red"],
  25.         phase: i * 0.2
  26.      });
  27.     }
  28. for(var i = 0; i < num; i++) {
  29.         list.addText({
  30.         text: ("flow"),
  31.         x: [100,300],
  32.         y: 100,
  33.         fontSize: [maxSize,minSize],
  34.         fillStyle: ["red","yellow"],
  35.         phase: i * 0.2
  36.      });
  37.     }
  38. for(var i = 0; i < num; i++) {
  39.         list.addText({
  40.         text: ("glow"),
  41.         x: 300,
  42.         y: [100,300],
  43.         fontSize: [minSize,maxSize],
  44.         fillStyle: ["yellow","green"],
  45.         phase: i * 0.2
  46.      });
  47.     }
  48. for(var i = 0; i < num; i++) {
  49.         list.addText({
  50.         text: ("grow"),
  51.         x: [300,100],
  52.         y: 300,
  53.         fontSize: [maxSize,minSize],
  54.         fillStyle: ["green","blue"],
  55.         phase: i * 0.2
  56.      });
  57.     }
  58. }
Advertisement
Add Comment
Please, Sign In to add comment