Handbook
Glossary
color>string ( color -- str )
Vocabulary
color-picker
Inputs
color
an
object
Outputs
str
an
object
Definition
USING:
colors
formatting
kernel
math
math.functions
;
IN:
color-picker
:
color>string
( color -- str )
>rgba-components
drop
[
255
*
round
>integer
]
tri@
3dup
"%d %d %d #%02x%02x%02x"
sprintf
;