show colors in status bar in the correct range (Gamma + RGB range)

This commit is contained in:
Thomas Bernard
2019-06-09 20:32:44 +02:00
parent 11004d048a
commit db5feb25b6
3 changed files with 18 additions and 6 deletions

View File

@@ -41,6 +41,10 @@ void Set_palette_Gamma(int);
/// Returns the resulting value, in the [0-255] range.
byte Round_palette_component(byte comp);
/// Turns a RGB component from 0-255 to 0-(RGB_scale-1)
/// with Gamma correction.
int Encode_component(int comp);
/*!
Adds 4 menu colors in the current palette.
@param color_usage An up-to-date color usage table (byte[256]) (read only)