Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onGLC(glc) {
- glc.loop();
- glc.styles.backgroundColor = "#000000";
- // glc.playOnce();
- // glc.size(400, 400);
- // glc.setDuration(5);
- // glc.setFPS(20);
- glc.setMode("single");
- // glc.setEasing(false);
- // glc.setMaxColors(256);
- var list = glc.renderList,
- width = glc.w,
- height = glc.h;
- var num = 4,
- minSize = 20,
- maxSize = 60;
- for(var i = 0; i < num; i++) {
- list.addText({
- text: ("frow"),
- x: 100,
- y: [300,100],
- fontSize: [minSize,maxSize],
- fillStyle: ["blue","red"],
- phase: i * 0.2
- });
- }
- for(var i = 0; i < num; i++) {
- list.addText({
- text: ("flow"),
- x: [100,300],
- y: 100,
- fontSize: [maxSize,minSize],
- fillStyle: ["red","yellow"],
- phase: i * 0.2
- });
- }
- for(var i = 0; i < num; i++) {
- list.addText({
- text: ("glow"),
- x: 300,
- y: [100,300],
- fontSize: [minSize,maxSize],
- fillStyle: ["yellow","green"],
- phase: i * 0.2
- });
- }
- for(var i = 0; i < num; i++) {
- list.addText({
- text: ("grow"),
- x: [300,100],
- y: 300,
- fontSize: [maxSize,minSize],
- fillStyle: ["green","blue"],
- phase: i * 0.2
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment