[GIF] GIF Loop coder-introduction

Source: Internet
Author: User

Introducing the program, GIF Loop Coder, which allows-make looping animated GIFs (and other types of animations) US ing JavaScript and HTML5 Canvas. We ' ll cover the basic UI and syntax of how to add objects to the animation list, animate them and save the result as a imated gif.

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: Max, FillStyle:"Yellow", Stroke:true, Strokestyle:"Red", LineWidth: -    }); }

Make it move:

To do, you can pass array to the props:

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:[ -, Max], FillStyle: ["Green","Yellow"], stroke:true, Strokestyle: ["Yellow","Red"], linewidth: [ A, -]    }); }

Create Mutli stars:

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]});*/         for(vari =0; I < -; i++) {List.addstar ({x:math.random ()*width, y:math.random ()*height, Outerradius: -+ math.random () * -, Innerradius:Ten+ math.random () * -, FillStyle:color.randomRGB (), Rotation: [0, -]        })    }}

[GIF] gif Loop coder-introduction

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.