More function documentation
This commit is contained in:
parent
e56067d202
commit
9144ebd705
11 changed files with 338 additions and 90 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue