[GIF] Shape Objects in GIF Loop Coder

时间:2022-10-20 22:56:38

This lesson is a quick tour of the predefined shape objects in GIF Loop Coder.

function onGLC(glc) {
glc.loop();
// glc.size(400, 400);
// glc.setDuration(5);
// glc.setFPS(20);
glc.setMode('single');
glc.setEasing(false);
var list = glc.renderList,
width = glc.w,
height = glc.h,
color = glc.color; // your code goes here: /* list.addOval({
x: width / 2,
y: height / 2,
rx: [100,200],
ry: [200,100],
stroke: true,
lineWidth: 10,
strokeStyle: "red",
fillStyle: "orange",
//fill: false
});*/ list.addGear({
x: width / ,
y: height / ,
radius: ,
teeth: ,
toothHeight: ,
toothAngle: [0.2, 0.8],
rotation: [,]
}) list.addBezierSegment({
x0: ,
y0: ,
x1: ,
y1: ,
x2: ,
y2: ,
x3: ,
y3: ,
percent: 0.5
})
}

[GIF] Shape Objects in GIF Loop Coder

Cube:

function onGLC(glc) {
glc.loop();
// glc.size(400, 400);
// glc.setDuration(5);
// glc.setFPS(20);
glc.setMode('single');
glc.setEasing(false);
var list = glc.renderList,
width = glc.w,
height = glc.h,
color = glc.color; // your code goes here: list.addCube({
x: width / ,
y: height /,
z: ,
rotationY: [,],
rotationX: [,],
rotationZ: [,]
}) }

[GIF] Shape Objects in GIF Loop Coder

image and IOS box:

function onGLC(glc) {
glc.loop();
// glc.size(400, 400);
// glc.setDuration(5);
// glc.setFPS(20);
glc.setMode('single');
glc.setEasing(false);
var list = glc.renderList,
width = glc.w,
height = glc.h,
color = glc.color; // your code goes here: list.addIsobox({
x: width / ,
y: height / ,
size: ,
h: [-, ],
colorTop: color.hsv(, , ),
colorRight: color.hsv(, , 0.75),
colorLeft: color.hsv(, , 0.5),
}); list.addImage({
x: width-,
y: height-,
w: ,
h: ,
rotation: [,],
url: "http://img.pandawhale.com/44041-oh-my-god-despicable-me-gif-fj5t.gif"
}); }

[GIF] Shape Objects in GIF Loop Coder