Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onGLC(glc) {
- glc.loop();
- glc.size(600, 100);
- glc.setDuration(2);
- // glc.setFPS(20);
- glc.setMode("single");
- // glc.setEasing(false);
- // glc.setMaxColors(256);
- glc.styles.backgroundColor= "red";
- var list = glc.renderList,
- width = glc.w,
- height = glc.h,
- color = glc.color;
- var message = "25daysofgifmas";
- for (var i = 0; i < message.length; i++) {
- var container = list.addContainer({
- x: (i+1)*40,
- y: 60,
- rotation: [0,360],
- phase: (message.length-1)-(i+1)*0.02
- })
- list.addText({
- text: message.charAt(i),
- fontSize: 50,
- fontFamily: "serif",
- x: 0,
- y: -20,
- stroke:true,
- strokeStyle: color.randomRGB(),
- parent: container
- })
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment