Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ac9771e

Browse files
committed
Image
1 parent e73b8bf commit ac9771e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2592,6 +2592,7 @@ img.convert(mode='RGB').save('test.png')
25922592
### Animation
25932593
#### Creates a GIF of a bouncing ball:
25942594
```python
2595+
# $ pip3 install imageio
25952596
from PIL import Image, ImageDraw
25962597
import imageio
25972598
HEIGHT, R = 126, 10

index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2203,7 +2203,8 @@
22032203
<li><strong><code class="python hljs"><span class="hljs-string">'RGB'</span></code> - 3x8-bit pixels, true color.</strong></li>
22042204
<li><strong><code class="python hljs"><span class="hljs-string">'RGBA'</span></code> - 4x8-bit pixels, true color with transparency mask.</strong></li>
22052205
<li><strong><code class="python hljs"><span class="hljs-string">'HSV'</span></code> - 3x8-bit pixels, Hue, Saturation, Value color space.</strong></li>
2206-
</ul><div><h3 id="animation">Animation</h3><div><h4 id="createsagifofabouncingball">Creates a GIF of a bouncing ball:</h4><pre><code class="python language-python hljs"><span class="hljs-keyword">from</span> PIL <span class="hljs-keyword">import</span> Image, ImageDraw
2206+
</ul><div><h3 id="animation">Animation</h3><div><h4 id="createsagifofabouncingball">Creates a GIF of a bouncing ball:</h4><pre><code class="python language-python hljs"><span class="hljs-comment"># $ pip3 install imageio</span>
2207+
<span class="hljs-keyword">from</span> PIL <span class="hljs-keyword">import</span> Image, ImageDraw
22072208
<span class="hljs-keyword">import</span> imageio
22082209
HEIGHT, R = <span class="hljs-number">126</span>, <span class="hljs-number">10</span>
22092210
frames = []

0 commit comments

Comments
 (0)