mirror of
https://github.com/freedoom/freedoom.git
synced 2025-09-01 22:25:46 -04:00
Fix colormap script: leftover debugging code meant that all colormaps were at the same level.
This commit is contained in:
parent
f040eb54bb
commit
6921e51792
1 changed files with 2 additions and 3 deletions
|
@ -74,10 +74,9 @@ def generate_colormap(colors, transform_function):
|
||||||
|
|
||||||
def generate_darkened_colormap(colors, factor):
|
def generate_darkened_colormap(colors, factor):
|
||||||
|
|
||||||
factor = 0.5
|
darken_function = lambda c: ( c[0] * factor, \
|
||||||
darken_function = lambda c: [ c[0] * factor, \
|
|
||||||
c[1] * factor, \
|
c[1] * factor, \
|
||||||
c[2] * factor ]
|
c[2] * factor )
|
||||||
|
|
||||||
return generate_colormap(colors, darken_function)
|
return generate_colormap(colors, darken_function)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue