Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onGLC(glc) {
- glc.loop();
- // glc.playOnce();
- glc.size(540, 540);
- glc.setDuration(2.5);
- glc.setFPS(30);
- // glc.setMode("single");
- // glc.setEasing(false);
- var list = glc.renderList,
- width = glc.w,
- height = glc.h,
- color = glc.color,
- ox = width/2,
- oy = height/2,
- TWO_PI = Math.PI*2;
- // your code goes here:
- var num = 50,
- v = 25,
- even = true;
- for (var i=0; i<num; i++) {
- list.addPoly({
- x: [ox-v, ox+v],
- y: oy,
- sides: 3,
- rotation: [30,90],
- fillStyle: even ? "darkred" : "white",
- radius: 180 - i*3.68,
- shadowColor: "rgba(0, 0, 0, 0.35)",
- shadowOffsetX: 5,
- shadowOffsetY: 5,
- shadowBlur: 20,
- phase: i/(num*1)
- });
- if (i%3===0) even =! even;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement