CONSTANT: full-block-string $[ 10 CHAR: full-block <string> ]
-: rgba>hex ( rgba -- hex )
- [ red>> ] [ green>> ] [ blue>> ] tri
- [ 255 * round >integer ] tri@ "%02X%02X%02X" sprintf ;
-
PRIVATE>
M: color-renderer filled-column
[ red>> "%.5f" sprintf ]
[ green>> "%.5f" sprintf ]
[ blue>> "%.5f" sprintf ]
- [ rgba>hex ]
+ [ color>hex ]
} cleave
] output>array ;