From ac9771e28bde63d46c59e8397d4cf85d3f28c083 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sat, 17 Aug 2019 23:40:58 +0200 Subject: [PATCH] Image --- README.md | 1 + index.html | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fa84075..7a3772e 100644 --- a/README.md +++ b/README.md @@ -2592,6 +2592,7 @@ img.convert(mode='RGB').save('test.png') ### Animation #### Creates a GIF of a bouncing ball: ```python +# $ pip3 install imageio from PIL import Image, ImageDraw import imageio HEIGHT, R = 126, 10 diff --git a/index.html b/index.html index 5178162..b2c8ae9 100644 --- a/index.html +++ b/index.html @@ -2203,7 +2203,8 @@ img.convert(mode='RGB').save('RGB' - 3x8-bit pixels, true color.
  • 'RGBA' - 4x8-bit pixels, true color with transparency mask.
  • 'HSV' - 3x8-bit pixels, Hue, Saturation, Value color space.
  • -

    Animation

    Creates a GIF of a bouncing ball:

    from PIL import Image, ImageDraw
    +

    Animation

    Creates a GIF of a bouncing ball:

    # $ pip3 install imageio
    +from PIL import Image, ImageDraw
     import imageio
     HEIGHT, R = 126, 10
     frames = []