1 ! Copyright (C) 2010 John Benediktsson
2 ! See http://factorcode.org/license.txt for BSD license
4 USING: colors help.markup help.syntax strings ;
9 { $values { "hex" string } { "rgba" color } }
10 { $description "Converts a hexadecimal string value into a " { $link color } "." }
14 { $values { "rgba" color } { "hex" string } }
15 { $description "Converts a " { $link color } " into a hexadecimal string value." }
19 { $syntax "HEXCOLOR: value" }
20 { $description "Parses as a " { $link color } " object with the given hexadecimal value." }
23 "USING: colors.hex io.styles ;"
24 "\"Hello!\" { { foreground HEXCOLOR: 336699 } } format nl"
28 ARTICLE: "colors.hex" "HEX colors"
29 "The " { $vocab-link "colors.hex" } " vocabulary implements colors specified "
30 "by their hexadecimal value."
36 { $see-also "colors" } ;