summary refs log tree commit diff
path: root/How-to/Python/Envelope (mathematics) generator
diff options
context:
space:
mode:
authoruser@node5.net <user@node5.net>2025-08-03 01:00:06 +0200
committeruser@node5.net <user@node5.net>2025-08-03 01:00:06 +0200
commit93c10851318eebf547f4a77f31a3029331520b14 (patch)
tree69b8be790bef1152c58750d7ad16ce742420135f /How-to/Python/Envelope (mathematics) generator
parentf5bbe606770a4327535e459f106bd4a7158eb6e0 (diff)
Flat structure, delete various half completed
Diffstat (limited to 'How-to/Python/Envelope (mathematics) generator')
-rw-r--r--How-to/Python/Envelope (mathematics) generator/Envelope.pngbin80865 -> 0 bytes
-rw-r--r--How-to/Python/Envelope (mathematics) generator/Thumbnail.pngbin2297 -> 0 bytes
-rw-r--r--How-to/Python/Envelope (mathematics) generator/index.md35
3 files changed, 0 insertions, 35 deletions
diff --git a/How-to/Python/Envelope (mathematics) generator/Envelope.png b/How-to/Python/Envelope (mathematics) generator/Envelope.png
deleted file mode 100644
index f7cf72c..0000000
--- a/How-to/Python/Envelope (mathematics) generator/Envelope.png
+++ /dev/null
Binary files differdiff --git a/How-to/Python/Envelope (mathematics) generator/Thumbnail.png b/How-to/Python/Envelope (mathematics) generator/Thumbnail.png
deleted file mode 100644
index 01eb49e..0000000
--- a/How-to/Python/Envelope (mathematics) generator/Thumbnail.png
+++ /dev/null
Binary files differdiff --git a/How-to/Python/Envelope (mathematics) generator/index.md b/How-to/Python/Envelope (mathematics) generator/index.md
deleted file mode 100644
index 79e92de..0000000
--- a/How-to/Python/Envelope (mathematics) generator/index.md
+++ /dev/null
@@ -1,35 +0,0 @@
----
-description: Generating geometric line art
-created: 2024-05-12
----
-
-![Envelope](Envelope.png)
-
-Needed a clean picture of [Envelope (mathematics)](https://en.wikipedia.org/wiki/Envelope_%28mathematics%29), 
-for PCB silk screen art.
-I used [Python Pillow](https://python-pillow.org/)
-```
-pip install pillow~=10.3
-```
-
-```python
-from PIL import Image, ImageDraw
-
-# https://en.wikipedia.org/wiki/Envelope_%28mathematics%29
-
-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:  # mode="RGBA" for transparent background
-    draw = ImageDraw.Draw(im)
-
-    for i in range(dim):
-        if i % skip:
-            continue
-        rev = dim - i
-        draw.line([(0, i), (i, dim)], fill=color, width=width) 
-    
-    im.show()  # im.save("/tmp/Envelope.png")
-```
\ No newline at end of file