Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onGLC(glc) {
- glc.loop();
- glc.size(540, 540);
- glc.setDuration(3);
- glc.setFPS(30);
- // glc.setMode('single');
- // glc.setEasing(false);
- var list = glc.renderList,
- width = glc.w,
- height = glc.h,
- color = glc.color;
- // your code goes here:
- var num = 5,
- step = width/num;
- for (var x=step; x<=width-step; x +=step) {
- for (var y=step; y<=height-step; y +=step) {
- list.addPoly({
- x: x,
- y: y,
- rotation: [45,135],
- radius: step*.55,
- sides: 3,
- });
- list.addPoly({
- x: x,
- y: y,
- fillStyle: "white",
- rotation: [180,360],
- radius: step*.45,
- sides: 3
- });
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement