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"]
})
}

最新文章

  1. 【腾讯Bugly干货分享】移动客户端中高效使用SQLite
  2. DPA 9.1.85 升级到DPA 10.0.352流程
  3. 快乐的JS正则表达式(三)
  4. LeetCode Dungeon Game
  5. Spring注解实例
  6. java 从String中匹配数字,并提取数字
  7. C# 汉子增加UTF-8头
  8. 高性能浏览器网络(High Performance Browser Networking) 第二章
  9. VR全景:720全景在线购物点亮你的眼球
  10. C#基础知识 简单说明泛型的优点
  11. Servlet之cookie处理
  12. http验证
  13. [Python Web]部署完网站需要做的基本后续工作
  14. (转)初学Git及简单搭建git服务器和客户端
  15. display设置弹性盒布局
  16. Cannot find wrapper assembly for type library "ADODB". in VS2017
  17. Java 持久化操作之 --XML
  18. 06: mysql索引查找原理及调优
  19. [Android] android.util.Log
  20. eCharts IE8兼容性问题

热门文章

  1. linux下查看机器的硬件信息:
  2. 安装java memcached client到本地maven repository
  3. Android 性能优化之使用MAT分析内存泄露问题
  4. poj1691(dfs)
  5. C#中窗体的一些简单运用
  6. POJ_3273_Monthly_Expense_(二分,最小化最大值)
  7. JDK/bin目录下的不同exe文件的用途(转)
  8. spring--AOP1--6
  9. NEsper z
  10. POJ 2411 Mondriaan's Dream