In this lesson we cover the different methods for defining and animating colors in GIF Loop Coder.
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: for(var i = 0; i < 1000; i ++){ var x = Math.random() * width; var y = Math.random() * height; list.addPoly({ x: x, y: y, radius: 20 +Math.random() * 20, sides: 3 + Math.random() * 4, fillStyle: color.animHSV(x/width*360,Math.random() * 360,1,1,1,1) // fillStyle: color.hsv(x/width*360, 1,1) }) } }
Link: http://www.gifloopcoder.com/docs/styles.html#color