I need to create this animated .gif but use circles instead. I need to use the P
ID: 3573492 • Letter: I
Question
I need to create this animated .gif but use circles instead. I need to use the Python Language version 2. I need it to use the PIL (python image library) and be a layer of 30 images named pic_01.gif, pic_02.gif etc created by python. I have no idea how to do this. The end result needs to look like the example gif but circles instead of squares. This is the only directions my professor has provided me with :(
My take on the directions Is I have to create 30 gif files using python named pic_01.gif, pic_02.gif etc and then layer them to make an animated gif similar to the example.
Here is the link to the animated gif. It is my Google drive share link
https://drive.google.com/file/d/0B49YSBulZ6MTNmpSLWFnalk1VVE/view?usp=sharing
Explanation / Answer
Hi,
There are a lot of libraries in python which you can use to create a gif. You first need to create circles of same size with different colors and save them as jpg or png files. So now you need to create a single gif using these different images.
One of such libraries is Imageio. Sample code for this would be :
you just need to create a variable fileNames with all the fileNames of circle with different colors.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.