eriknau

Gif Loop Coder scenes

Nov 29th, 2015
106
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(5);
  5.     // glc.setFPS(20);
  6.     glc.setMode("single");
  7.     // glc.setEasing(false);
  8.     // glc.setMaxColors(256);
  9.     var list = glc.renderList,
  10.         width = glc.w,
  11.         height = glc.h,
  12.         color = glc.color;
  13.  
  14.     //list.setCurrentScene(0) is final loop to play first
  15.  
  16.     list.setCurrentScene(1);
  17.     list.addText({
  18.         x: [100,300],
  19.         y: 200,
  20.         text: "J",
  21.         fontSize: 200,
  22.         fill: true,
  23.         fillStyle: [color.rgba(255,0,0,1),color.rgba(255,0,0,0)]
  24.     });
  25.     list.addText({
  26.         x: [100,300],
  27.         y: 200,
  28.         text: "a",
  29.         fontSize: 200,
  30.         fill: true,
  31.         fillStyle: [color.rgba(255,0,0,0),color.rgba(255,0,0,1)]
  32.     });
  33.  
  34.     list.setCurrentScene(2);
  35.     list.addText({
  36.         x: [300,100],
  37.         y: 200,
  38.         text: "a",
  39.         fontSize: 200,
  40.         fill: true,
  41.         fillStyle: [color.rgba(255,0,0,1),color.rgba(255,0,0,0)]
  42.     });
  43.     list.addText({
  44.         x: [300,100],
  45.         y: 200,
  46.         text: "m",
  47.         fontSize: 200,
  48.         fill: true,
  49.         fillStyle: [color.rgba(255,0,0,0),color.rgba(255,0,0,1)]
  50.     });
  51.  
  52.     list.setCurrentScene(3);
  53.     list.addText({
  54.         x: [100,300],
  55.         y: 200,
  56.         text: "m",
  57.         fontSize: 200,
  58.         fill: true,
  59.         fillStyle: [color.rgba(255,0,0,1),color.rgba(255,0,0,0)]
  60.     });
  61.     list.addText({
  62.         x: [100,300],
  63.         y: 200,
  64.         text: "e",
  65.         fontSize: 200,
  66.         fill: true,
  67.         fillStyle: [color.rgba(255,0,0,0),color.rgba(255,0,0,1)]
  68.     });
  69.  
  70.     list.setCurrentScene(4);
  71.     list.addText({
  72.         x: [300,100],
  73.         y: 200,
  74.         text: "e",
  75.         fontSize: 200,
  76.         fill: true,
  77.         fillStyle: [color.rgba(255,0,0,1),color.rgba(255,0,0,0)]
  78.     });
  79.     list.addText({
  80.         x: [300,100],
  81.         y: 200,
  82.         text: "s",
  83.         fontSize: 200,
  84.         fill: true,
  85.         fillStyle: [color.rgba(255,0,0,0),color.rgba(255,0,0,1)]
  86.     });
  87.  
  88.     list.setCurrentScene(5);
  89.     list.addText({
  90.         x: [100,300],
  91.         y: 200,
  92.         text: "s",
  93.         fontSize: 200,
  94.         fill: true,
  95.         fillStyle: [color.rgba(255,0,0,1),color.rgba(255,0,0,0)]
  96.     });
  97.  
  98.     list.setCurrentScene(0);
  99.     list.addText({
  100.         x: [300,100],
  101.         y: 200,
  102.         text: "J",
  103.         fontSize: 200,
  104.         fill: true,
  105.         fillStyle: [color.rgba(255,0,0,0),color.rgba(255,0,0,1)]
  106.     });
  107. }
Advertisement
Add Comment
Please, Sign In to add comment