Cleanup
parent
f99ab896f8
commit
6dff5fcc6a
|
@ -50,8 +50,8 @@ TUPLE: html-sub-stream < html-stream style parent ;
|
||||||
] [ call ] if* ; inline
|
] [ call ] if* ; inline
|
||||||
|
|
||||||
: hex-color, ( color -- )
|
: hex-color, ( color -- )
|
||||||
{ [ red>> ] [ green>> ] [ blue>> ] } cleave 3array
|
[ red>> ] [ green>> ] [ blue>> ] tri
|
||||||
[ 255 * >fixnum >hex 2 CHAR: 0 pad-left % ] each ;
|
[ 255 * >fixnum >hex 2 CHAR: 0 pad-left % ] tri@ ;
|
||||||
|
|
||||||
: fg-css, ( color -- )
|
: fg-css, ( color -- )
|
||||||
"color: #" % hex-color, "; " % ;
|
"color: #" % hex-color, "; " % ;
|
||||||
|
|
Loading…
Reference in New Issue