'RGBA'
- 4x8-bit pixels, true color with transparency mask.'HSV'
- 3x8-bit pixels, Hue, Saturation, Value color space.from PIL import Image, ImageDraw
+import imageio
+height, r = 126, 10
+frames = []
+for velocity in range(1, 16):
+ y = sum(range(velocity))
+ frame = Image.new('L', (height, height))
+ draw = ImageDraw.Draw(frame)
+ draw.ellipse((height/2-r, y, height/2+r, y+2*r), fill='white')
+ frames.append(frame)
+frames += reversed(frames[1:-1])
+imageio.mimsave('test.gif', frames, duration=0.03)
+
import wave
from struct import pack, iter_unpack