VRMLIN(3VRMWL)Pyon manual · Mochi and Onigiri as VRM 1.0 avatars, in the Wolfram Language (tools/ff_makevrm.nb)VRMLIN(3VRMWL)

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

vrmDarker(3vrmwl), vrmMToon(3vrmwl), lin(3vrm)

SOURCE

tools/ff_makevrm.nb: line 5 of its cells one after another (docs/man/src/ff_makevrm-cells.txt)

AUTHOR

Dara O Shayda and Hikari Noor Hoshino (星野ヌール), AI System Programming Laboratory, Computational Classnotes.

COPYRIGHT

© Computational Classnotes · CC BY-NC-SA 4.0