Merge branch 'file-format' of https://git.0x01fe.net/0x01FE/ASCII-Filter into file-format

This commit is contained in:
JISAUAY 2025-05-28 09:19:26 -05:00
commit 2a75ae8e0a
3 changed files with 7 additions and 7 deletions

3
.gitignore vendored
View File

@ -1,4 +1,5 @@
*.png
*.jpg
!sample-images/*
__pycache__
__pycache__
*.gif

View File

@ -212,10 +212,9 @@ class CTIF:
# logging.debug(f'HSV Color: {h, s, v}')
# Make the bright colors brighter and the darks darker
if v >= 0.5:
v *= 1.5
else:
v *= 1.25
# if v <= 0.4:
# v *= 1.5
r, g, b = colorsys.hsv_to_rgb(h, s, v)

View File

@ -7,7 +7,7 @@ import ctif
FORMAT = "%(levelname)s %(filename)s - %(message)s"
logging.basicConfig(level=logging.DEBUG, format=FORMAT)
IMAGE_PATH = 'game_screenshots/greensilt-banner.jpg'
IMAGE_PATH = 'game_screenshots/deadwell-banner.jpg'
def main():
@ -15,7 +15,7 @@ def main():
i = ctif.CTIF(image)
# i.save_citf('engine')
# i.read_citf('engine.citf')
i.save_image('render.png')
i.save_image('C:/Users/Jacks/Documents/code/My-Website/app/static/render.png')
i.save_edges('debug/edges-render.png')
# i.save_image('render.png')
# i.save_citf('engine')