☰
Debian Codegraph
@
0.8.3-1
/
/
examples
/
named-colors.rs
☽
☼
examples/named-colors.rs
code
plain
raw
symbols
SCIP
Expat
or
Apache-2.0
2020 Nor Khasyatillah <
[email protected]
>
debian/copyright
1
use
csscolorparser
::
NAMED_COLORS
;
2
3
fn
main
() {
4
for (
name
,
rgb
) in &
NAMED_COLORS
{
5
let [
r
,
g
,
b
] =
rgb
;
6
println
!("\x1B[48;2;{r};{g};{b}m \x1B[49m {name} {rgb:?}");
7
}
8
}