summary refs log tree commit diff
diff options
context:
space:
mode:
authoruser <user@node5.net>2024-05-19 10:35:05 +0200
committeruser <user@node5.net>2024-05-19 10:35:05 +0200
commit49fac31f191ba37cbe7364de6414fb3bdf23e796 (patch)
treeec3c57b0a375422edf773a3e7f25414ceb0431f3
parentc3f8453bd51e3176233dcda51ae227b56f41e9c5 (diff)
Envelope (mathematics) generator - refactor comments how to alpha background
-rw-r--r--How-to/Python/Envelope (mathematics) generator/index.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/How-to/Python/Envelope (mathematics) generator/index.md b/How-to/Python/Envelope (mathematics) generator/index.md
index 3b29dcf..79e92de 100644
--- a/How-to/Python/Envelope (mathematics) generator/index.md
+++ b/How-to/Python/Envelope (mathematics) generator/index.md
@@ -17,12 +17,12 @@ from PIL import Image, ImageDraw
 
 # https://en.wikipedia.org/wiki/Envelope_%28mathematics%29
 
-dim = 200  # Image dimmensions (pixels)
+dim = 200  # Image dimensions (pixels)
 skip = 10   # Only draw a line every X pixels
 width = 1   # Line width
 color = "white"
 
-with Image.new(mode = "RGB", size = (dim, dim)) as im:
+with Image.new(mode = "RGB", size = (dim, dim)) as im:  # mode="RGBA" for transparent background
     draw = ImageDraw.Draw(im)
 
     for i in range(dim):