This repository has been archived on 2025-09-28. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
glitch/examples/channel_offset/run.py

15 lines
318 B
Python
Raw Normal View History

#!/usr/bin/env python3
from sys import path
path.append("../../")
from PIL import Image
from glitch import channel_offset
from glitch import hsv
if __name__ == "__main__":
img: Image.Image = Image.open("original.png").convert("RGB")
channel_offset(img, (2, 0), (-2, -2), (0, 2))
img.save("result.png")