More function documentation

This commit is contained in:
Bill Kendrick 2018-05-17 00:30:48 -07:00
parent e56067d202
commit 9144ebd705
11 changed files with 338 additions and 90 deletions

View file

@ -30,6 +30,13 @@
#include "rgblinear.h"
#include "debug.h"
/**
* Return sRGB mapping (0-255 byte) of a linear (0.0 to 1.0) value
* (see rgblinear.h)
*
* @param linear Linear (float) value
* @return sRGB (byte) value
*/
unsigned char linear_to_sRGB(float linear)
{
unsigned slot;