Added examples for channel_offset, led_screen and pixel_smear
This commit is contained in:
parent
6440019de2
commit
2a15d81651
10 changed files with 58 additions and 1 deletions
14
examples/pixel_smear/run.py
Executable file
14
examples/pixel_smear/run.py
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
from sys import path
|
||||
path.append("../../")
|
||||
|
||||
from PIL import Image
|
||||
|
||||
from glitch import pixel_smear
|
||||
from glitch import hsv
|
||||
|
||||
if __name__ == "__main__":
|
||||
img: Image.Image = Image.open("original.png").convert("RGB")
|
||||
pixel_smear(img, limiter=lambda p: hsv(p)[0] < .85 and hsv(p)[1] < .5, wrap=True)
|
||||
img.save("result.png")
|
Reference in a new issue