feat: scripts

This commit is contained in:
Barrett Ruth 2025-11-08 22:46:49 -05:00
parent 6feaf48ccf
commit adc524c8fb
2 changed files with 5 additions and 3 deletions

View file

@ -2,7 +2,7 @@
neovim theme for code, not colors.
<img width="1511" height="910" alt="Image" src="https://github.com/user-attachments/assets/5d94c01e-8b84-41d4-9dd4-52f9552cd892" />
![Image](https://github.com/user-attachments/assets/9abb5126-15d7-4de4-ad6d-ec35975fec03)
## Installation

View file

@ -20,8 +20,10 @@ mask = np.zeros((height, width), dtype=np.uint8)
for y in range(height):
for x in range(width):
progress = (x + (height - y)) / (width + height)
mask[y, x] = int(progress * 255)
if y * width < x * height:
mask[y, x] = 255
else:
mask[y, x] = 0
mask_img = Image.fromarray(mask, mode="L")
result = Image.composite(light, dark, mask_img)