
impl Color {
    pub fn new(r: u8, g: u8, b: u8) -> Color {
        Color {
            r: convert(r),
            g: convert(g),
            b: convert(b),
        }
    }

    pub fn generate(index: usize) -> (Color, u8, u8, u8) {