animated-gif

How to fade curves of an animated gif in matplotlib

How to fade curves of an animated gif in matplotlib Question: I have a gif but i want to fade the curves plotted. I have read this solution but still I need help. At the moment all curves are the same: This code makes the gif for me: import matplotlib import imageio def plot_for_offset(time, value): …

Total answers: 1

Python Pillow transparent gif isn't working

Python Pillow transparent gif isn't working Question: I am trying to make a gif of the following icon rotating : To attempt to achieve this I am running the following code in Python using the Pillow library : from PIL import Image, ImageDraw images = [] icon = Image.open(“cameraIcon.png”) for i in range(0, 360): images.append(icon.rotate(i)) …

Total answers: 3

Play an Animated GIF in python with tkinter

Play an Animated GIF in python with tkinter Question: I am wanting to create a virtual pet style game using python3 and tkinter. So far I have the main window and have started putting labels in, but the issue I am having is playing an animated gif. I have searched on here and have found …

Total answers: 3

making gif from images using imageio in python

making gif from images using imageio in python Question: I have tried reading a lot of examples online and found imageio is the perfect package for it. Also found examples written in here. I have just followed the example as shown and tried the following import imageio as io import os file_names = sorted((fn for …

Total answers: 2

Programmatically generate video or animated GIF in Python?

Programmatically generate video or animated GIF in Python? Question: I have a series of images that I want to create a video from. Ideally I could specify a frame duration for each frame but a fixed frame rate would be fine too. I’m doing this in wxPython, so I can render to a wxDC or …

Total answers: 24