From 398fb99cef107898c90aa31a39fa73c2a216a5a7 Mon Sep 17 00:00:00 2001 From: 0x01fe <0x01fe@0x01fe.net> Date: Mon, 16 Sep 2024 22:16:14 -0500 Subject: [PATCH] more fixing --- .gitignore | 3 ++- ctif.py | 7 +++---- main.py | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index c9b9e8e..f1c1711 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ *.png *.jpg !sample-images/* -__pycache__ \ No newline at end of file +__pycache__ +*.gif \ No newline at end of file diff --git a/ctif.py b/ctif.py index 6a663c2..0d383e0 100644 --- a/ctif.py +++ b/ctif.py @@ -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 *= 0.5 + # if v <= 0.4: + # v *= 1.5 + r, g, b = colorsys.hsv_to_rgb(h, s, v) diff --git a/main.py b/main.py index 8959ec6..0f37707 100644 --- a/main.py +++ b/main.py @@ -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')