This commit is contained in:
2025-03-24 16:10:38 -04:00
parent 7acf12a325
commit 8e3944d5df
4 changed files with 17 additions and 17 deletions

View File

@@ -15,7 +15,7 @@ pub fn random_palette() -> Palette {
const fn hex_to_color(c: usize) -> image::Rgb<u8> {
let r = (c >> 16) & 0xff;
let g = (c >> 8) & 0xff;
let b = (c >> 0) & 0xff;
let b = c & 0xff;
image::Rgb::<u8>([r as u8, g as u8, b as u8])
}