Skip to content

Commit

Permalink
Move green color translation formula one step away from cyan
Browse files Browse the repository at this point in the history
  • Loading branch information
JNechaevsky committed Oct 16, 2023
1 parent e69e50c commit 8061795
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/v_trans.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ byte V_Colorize (byte *playpal, int cr, byte source, boolean keepgray109)
if (cr == CR_GREEN)
{
// hsv.x = 135./360.;
hsv.x = (145. * hsv.z + 120. * (1. - hsv.z))/360.;
hsv.x = (144. * hsv.z + 120. * (1. - hsv.z))/360.;
}
else
if (cr == CR_GOLD)
Expand Down

0 comments on commit 8061795

Please sign in to comment.