[GIF] GIF Loop Coder - Animating with Arrays
In this lesson, we discuss animating using arrays, and how different data types are interpolated while animating.
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.addCircle({
        x:width/2,
        y:height/2,
        radius:[100, 150],
        fillStyle: ["green", "yellow"],
        stroke: true,
        strokeStyle: ["yellow", "red"],
        lineWidth: [12, 20]
    });*/
    list.addRect({
        x:width/,
        y:height/,
        w: [,],
        h: [,],
        fillStyle: ["rgba(120,5,140,0.8)", "#564121"],
        stroke: [false,true],
          lineWidth:
    });
    list.addText({
        text: ["world", "Hello"]
    });
    list.addPath({
        path: [
            [,, ,, ,, ,],
            [,, ,, ,, ,],
        ]
    });
}

If you want smooth animation, the array can only have two params at this point, if you add more, then it looks like this:
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.addPoly({
        x:width/,
        y:height/,
        radius: ,
        sides: ,
        fillStyle: ["red","green", "blue"]
    })
}

[GIF] GIF Loop Coder - Animating with Arrays的更多相关文章
- [GIF] Colors in GIF Loop Coder
		In this lesson we cover the different methods for defining and animating colors in GIF Loop Coder. f ... 
- [GIF] The Phase Property in GIF Loop Coder
		In this lesson, we look at one of the most powerful features in GIF Loop Coder, the phase property, ... 
- [GIF] Shape Objects in GIF Loop Coder
		This lesson is a quick tour of the predefined shape objects in GIF Loop Coder. function onGLC(glc) { ... 
- [GIF] GIF Loop Coder - Interpolation
		This video discusses the default interpolation in GIF Loop Coder, and four distinct ways to change t ... 
- [GIF] GIF Loop Coder - Introduction
		Introducing the program, GIF Loop Coder, which allows you to make looping animated gifs (and other t ... 
- [GIF] GIF Loop Coder Single Mode
		We'll take a look at Single Mode animations and strategies for making this type of animation smoothl ... 
- [GIF] Parenting in GIF Loop Coder
		In this lesson, we look at how you can build up complex animations by assigning one shape as the par ... 
- [GIF] GIF Loop Coder - Animation Functions
		Previous, we animate the item by passing an array to tell the start position and end position. To ma ... 
- Awk by Example--转载
		原文地址: http://www.funtoo.org/Awk_by_Example,_Part_1?ref=dzone http://www.funtoo.org/Awk_by_Example,_P ... 
随机推荐
- 服务器部署_linuix下 一台nginx 多域名
			近日朋友要我帮他调服务器, 一. 初步需求如下: 1. 一台服务器下要放三个应用,对应三个域名:www.aaa.com,www.bbb.com,www.ccc.com. 2. 其中后两个应用也要可以用 ... 
- java.lang.Boolean为null时
			public class TestBooleanNull { public static void main(String[] args) { if (test()) { System.out.pri ... 
- JavaScript功能一览
			// 10) throw "太大"; if(x0) { c_start=document.cookie.indexOf(c_name + "=") if (c_ ... 
- hdu4669Mutiples on a circle
			http://acm.hdu.edu.cn/showproblem.php?pid=4669 这题各种错误都来了一遍 预处理一下第一个数作为尾数与相邻前面的数组成的数的余数 然后再与后面的结合求余 ... 
- bzoj2661
			不难想到,先枚举建图然后跑最大费用最大流 也不难想到一种将每个数拆成两个点i1,i2,所有满足条件的数之间 把所有满足条件之间的数x,y连边x1--->y2,y1--->x2,流量为1,费 ... 
- 使用Arcglobe 10与3dmax建立三维城市
			转自:http://www.cnblogs.com/jinlun/p/3380307.html 随着国家大力推进数字城市的建设,三维城市的建设也是势在必行的.与传统二维地图相比,三维城市在立体层次.视 ... 
- 使用haproxy做负载均衡时保持客户端真实的IP
			haproxy里添加设置项 option forwardfor option httpclose apache的日志格式修改 LogFormat "MY IP=%{X-Forwarded-F ... 
- LoadRunner 参数化详解
			可能稍微对LR 有些了解的人都知道LR 参数化的功能,今天请跟我来一起好好理一下. 首先,咱们先说一下为啥要用参数化?假如您录制了一个登录的脚本,如下所示, web_submit_form(" ... 
- 【获取图像处理源码以及编译过程】在window下make。
			google 找算法 发现一片不错论文,google作者的主页 找到了相关代码: http://cs.nyu.edu/~ccouprie/code.html code部分--------------- ... 
- [POJ1852]Ants
			Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 12431 Accepted: 5462 Description An a ... 
