diff --git a/README.md b/README.md index b143d12..94b1c30 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ neovim theme for code, not colors. -Image +![Image](https://github.com/user-attachments/assets/9abb5126-15d7-4de4-ad6d-ec35975fec03) ## Installation diff --git a/scripts/thumbnail.py b/scripts/thumbnail.py index 9118878..21bf356 100755 --- a/scripts/thumbnail.py +++ b/scripts/thumbnail.py @@ -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)