Refactor graph and misc
This commit is contained in:
parent
5f5fe0c149
commit
8f163269bd
22 changed files with 126 additions and 45 deletions
|
|
@ -85,6 +85,14 @@ impl Color {
|
|||
Self::new(255, 255, 255)
|
||||
}
|
||||
|
||||
pub fn cyan() -> Self {
|
||||
Self::new(0x0f, 0xf0, 0xfc)
|
||||
}
|
||||
|
||||
pub fn gray(l: u8) -> Self {
|
||||
Self::new(l, l, l)
|
||||
}
|
||||
|
||||
pub fn index(i: usize) -> Self {
|
||||
let c = [
|
||||
Color::new(0xe6, 0x00, 0x49),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue