more fixing
This commit is contained in:
parent
faff798cfa
commit
398fb99cef
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,4 +1,5 @@
|
||||
*.png
|
||||
*.jpg
|
||||
!sample-images/*
|
||||
__pycache__
|
||||
__pycache__
|
||||
*.gif
|
||||
7
ctif.py
7
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)
|
||||
|
||||
|
||||
4
main.py
4
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')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user