playpal: slightly soften the red (pain) palettes

Instead of going full red on every entry in palette 9, let there still
be a tiny bit of visibility.
This commit is contained in:
Mike Swanson 2019-09-18 20:58:44 -07:00
parent 409e3888ee
commit d9c68f376a

View file

@ -53,7 +53,7 @@ def ihs_to_rgb(i, h, s):
def make_pal_range(i, h, s, n):
map_function = (lambda x: ihs_to_rgb(i * (n - x) / n, h, s * (n - x) / n),)
map_function = lambda x: ihs_to_rgb(i * (n - x) / n, h, s * (n - x) / n)
return map(map_function, range(n))
@ -192,7 +192,7 @@ palettes.append(base_pal)
# STARTREDPALS
for i in range(8):
p = (i + 1) / 8.0
p = (i + 1) * 0.8 / 8
palettes.append(bias_palette_towards(base_pal, (255, 0, 0), p))