NAME
vrmLin — a drawn colour, in the linear light glTF expects
SYNOPSIS
vrmLin["#rrggbb"] · vrmLin["#rrggbb", a]
DESCRIPTION
Reads the three hexadecimal pairs with FromDigits[ , 16], divides by 255 and applies the sRGB transfer function, so that the colours do not come out pale in the avatar programs.
RETURN VALUE
{r, g, b, a}, each from 0 to 1; a is 1. by default.
NOTES
The last one or two of the seventeen significant digits can differ from Python's lin(), because x^2.4 is computed by a different mathematics library.
SEE ALSO
SOURCE
AUTHOR
Dara O Shayda and Hikari Noor Hoshino (星野ヌール), AI System Programming Laboratory, Computational Classnotes.
COPYRIGHT
© Computational Classnotes · CC BY-NC-SA 4.0
