Refactor graph and misc

This commit is contained in:
hal8174 2025-03-02 22:51:25 +01:00
parent 5f5fe0c149
commit 8f163269bd
22 changed files with 126 additions and 45 deletions

View file

@ -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),