fix poster hue

This commit is contained in:
rlx 2019-11-19 18:04:44 +01:00
parent 2523228600
commit d13b9f710b

View file

@ -53,7 +53,7 @@ def render_poster(data, poster):
font_size_small = 32 font_size_small = 32
font_size_large = 48 font_size_large = 48
font_file = os.path.join(static_root, 'MontserratBold.ttf') font_file = os.path.join(static_root, 'MontserratBold.ttf')
hue = int(year) % 100 * 360 hue = int(year) % 100 * 3.6
image_color = getRGB([hue, 1, 0.2]) image_color = getRGB([hue, 1, 0.2])
background_color = getRGB([hue, 1, 0.4]) background_color = getRGB([hue, 1, 0.4])
foreground_color = getRGB([hue, 1, 0.8]) foreground_color = getRGB([hue, 1, 0.8])