Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onGLC(glc) {
- glc.loop();
- // glc.size(400, 400);
- glc.setDuration(10);
- // glc.setFPS(20);
- glc.setMode("single");
- glc.setEasing(false);
- // glc.setMaxColors(256);
- var r = 100, g = 0, b = 0;
- glc.styles.backgroundColor = "black";
- var list = glc.renderList,
- width = glc.w,
- height = glc.h,
- color = glc.color;
- var sun = list.addCircle({
- x: width/2,
- y: height/2,
- radius: 50,
- fill: true,
- fillStyle: "yellow",
- rotation: [0,720]
- });
- var marsRotator = list.addContainer({
- x: width/2,
- y: height/2,
- rotation: [0,360]
- })
- var mars = list.addCircle({
- parent: marsRotator,
- x: 160,
- y: 0,
- radius: 10,
- fillStyle: "orange",
- });
- var earth = list.addCircle({
- parent: sun,
- x: 100,
- y: 0,
- radius: 10,
- fillStyle: "blue",
- rotation: [0,1440]
- });
- list.addCircle({
- parent: earth,
- x: 25,
- y: 0,
- radius: 5,
- fillStyle: "gray",
- // rotation: [0,180]
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement