db4
Slava Pestov 2008-08-04 15:03:54 -05:00
parent f99ab896f8
commit 6dff5fcc6a
1 changed files with 2 additions and 2 deletions

View File

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