[−][src]Function screen_13::color::color
pub const fn color(idx: usize) -> Color
Sets the screen display colors.
idx: A number that sets the foreground screen color
Available Colors
idx | Name | Hexadecimal Value |
---|---|---|
0 | Black | 0x000000 |
1 | Dim Blue | 0x0000a8 |
2 | Dim Green | 0x00a800 |
3 | Dim Cyan | 0x00a8a8 |
4 | Dim Red | 0xa80000 |
5 | Dim Purple | 0xa800a8 |
6 | Brown | 0xa85400 |
7 | Dim White | 0xa8a8a8 |
8 | Gray | 0x545454 |
9 | Light Blue | 0x5454fc |
10 | Light Green | 0x54fc54 |
11 | Light Cyan | 0x54fcfc |
12 | Light Red | 0xfc5454 |
13 | Light Purple | 0xfc54fc |
14 | Light Yellow | 0xfcfc54 |
15 | Light White | 0xfcfcfc |