Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onGLC(glc) {
- glc.loop();
- // glc.size(400, 400);
- glc.setDuration(2);
- // glc.setFPS(20);
- // glc.setMode('single');
- // glc.setEasing(false);
- glc.styles.backgroundColor = "black";
- var list = glc.renderList,
- width = glc.w,
- height = glc.h,
- color = glc.color;
- for(var j = -50; j<height+150; j+=50) {
- if(j%100 === 0) {
- list.addRect({
- x: -50,
- y: [j+50,j],
- w: width+100,
- h: 50,
- rotation: -20,
- fillStyle: "red",
- drawFromCenter: false
- })
- } else {
- list.addRect({
- x: -50,
- y: [j+50,j],
- w: width+100,
- h: 50,
- rotation: -20,
- fillStyle: "green",
- drawFromCenter: false
- })
- }
- }
- for (var i = 10; i > 0; i--) {
- var hue = 140;
- list.addIsobox({
- x: 200,
- y: [i*29+80,i*20+80],
- colorTop: color.hsv(hue, 1, 1),
- colorRight: color.hsv(hue, 1, .75),
- colorLeft: color.hsv(hue, 1, .4),
- size: 30*i,
- h: 50/i,
- stroke: false,
- lineWidth: 2,
- phase: i*0.05,
- });
- }
- list.addStar({
- x: 200,
- y: [59, 49],
- outerRadius: 40,
- innerRadius: 20,
- sides: 5,
- fillStyle: "yellow",
- rotation: -15
- })
- }
Advertisement
Add Comment
Please, Sign In to add comment