>xyza ( color -- xyza )
CIE 1931 XYZ colors

Prev:<xyza> ( x y z alpha -- xyza )


Vocabulary
colors.xyz

Inputs
coloran object


Outputs
xyzaan object


Definition

GENERIC: >xyza ( color -- xyza )


Methods













M: rgba >xyza
[
[ red>> ] [ green>> ] [ blue>> ] tri
[ invert-rgb-compand ] tri@ 3 load-locals
-2 get-local 0.4124564 * -1 get-local 0.3575761 *
0 get-local 0.1804375 * + + -2 get-local 0.2126729 *
-1 get-local 0.7151522 * 0 get-local 0.072175 * + +
-2 get-local 0.0193339 * -1 get-local 0.119192 *
0 get-local 0.9503041 * + + 3 drop-locals
] [ alpha>> ] bi <xyza> ;