[GIF] GIF Loop coder-animating with Arrays

Source: Internet
Author: User

In this lesson, we discuss the animating using arrays, and how different data types is interpolated while animating.

function ONGLC (GLC) {glc.loop ();//Glc.size (+--);//glc.setduration (5);//Glc.setfps (a);//Glc.setmode (' single ');//glc.seteasing (false);    varList =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, and FillStyle: ["Green", "Yello W "], Stroke:true, Strokestyle: [" Yellow "," red "], linewidth: [n]});*/List.addrect ({x:width/2, Y:height/2, W: [ $, -], h: [ -, $], FillStyle: ["Rgba (120,5,140,0.8)","#564121"], stroke: [false,true], LineWidth: -    }); List.addtext ({text: [" World","Hello"]    }); List.addpath ({path: [[0,0, -, -, -, -, -, $],            [ -, -, $, -, -, $, $, -],        ]    });}

If you want smooth animation, the array can is only having a both params at this point and if you add more and then it looks like this:

function ONGLC (GLC) {glc.loop ();//Glc.size (+--);//glc.setduration (5);//Glc.setfps (a);//Glc.setmode (' single ');//glc.seteasing (false);    varList =glc.renderlist, Width=glc.w, Height=glc.h, Color=Glc.color; //Your code goes here:List.addpoly ({x:width/2, Y:height/2, Radius: Max, Sides:5, FillStyle: ["Red","Green","Blue"]    })}

[GIF] GIF Loop coder-animating with Arrays

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.