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

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


Vocabulary
colors.xyz

Inputs and outputs
coloran object
xyzaan object


Definition

GENERIC: >xyza ( color -- xyza )


Methods













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