博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
[GIF] GIF Loop Coder - Interpolation
阅读量:7300 次
发布时间:2019-06-30

本文共 1012 字,大约阅读时间需要 3 分钟。

This video discusses the default interpolation in GIF Loop Coder, and four distinct ways to change that interpolation to add variety to your animations.

 

Set Mode:

glc.setMode('single');//orglc.setMode('bounce');

 

Set Easing: 

glc.setEasing(false); //true

 

speedMult: Speed up the animation by number

phase: Delay the start animation by number

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: [50, 350],        y: height * 0.25,        radius: 20,        speedMult: 2,  // speed up        phase: 2, // delay starting    })        list.addCircle({        x: [50, 350],        y: height * 0.5,        radius: 20,        phase: 0.666    })            list.addCircle({        x: [50, 350],        y: height * 0.75,        radius: 20    })}

转载地址:http://gvfnm.baihongyu.com/

你可能感兴趣的文章
进程和线程之间的关系和区别 和 CPU牒
查看>>
cmake
查看>>
HTML5里的input标签的required属性的提示
查看>>
jQuery parent.append和$after的区别
查看>>
Hibernate 、多表关联映射 - 一对一关系映射(one- to-one)
查看>>
BZOJ 2435 NOI2011 道路建设 BFS/DFS
查看>>
Java:异常的处理
查看>>
绝对路径和相对路径的一些表示法
查看>>
OpenGL中shader使用
查看>>
having——至少被订购过两回的订单
查看>>
debian开机启动管理
查看>>
Microsoft强大团队(源代码)管理工具--TFS2010 与vs结合
查看>>
基于python2【重要】怎么自行搭建简单的web服务器
查看>>
Kafka目录
查看>>
SQL Server 优化器特性导致的内存授予相关BUG
查看>>
Android Memory Management
查看>>
【转】javax.net.ssl.SSLHandshakeException(Cas导入证书)
查看>>
Word中如何让两个图片垂直居中对齐
查看>>
Android APP分享功能实现
查看>>
微信公众平台高级群发接口
查看>>