zoukankan      html  css  js  c++  java
  • [GIF] GIF Loop Coder

    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');
    //or
    glc.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
        })
    }

  • 相关阅读:
    ICQ
    Create小程序
    LRU最近最少使用算法
    感知器
    聚类-K均值
    阈值分类法
    最邻近分类
    设计模式
    高级排序算法
    Socket编程
  • 原文地址:https://www.cnblogs.com/Answer1215/p/5695401.html
Copyright © 2011-2022 走看看