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