mirror of
https://github.com/freedoom/freedoom.git
synced 2025-09-01 13:25:46 -04:00
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:
parent
409e3888ee
commit
d9c68f376a
1 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue