1 ! Copyright (C) 2010 John Benediktsson
2 ! See http://factorcode.org/license.txt for BSD license
4 USING: colors colors.hex tools.test ;
8 { HEXCOLOR: 000000 } [ 0.0 0.0 0.0 1.0 <rgba> ] unit-test
9 { HEXCOLOR: FFFFFF } [ 1.0 1.0 1.0 1.0 <rgba> ] unit-test
10 { HEXCOLOR: abcdef } [ "abcdef" hex>rgba ] unit-test
11 { HEXCOLOR: abcdef } [ "ABCDEF" hex>rgba ] unit-test
12 { "ABCDEF" } [ HEXCOLOR: abcdef rgba>hex ] unit-test