This commit is contained in:
2024-12-02 19:39:06 +01:00
parent 6cafdcfa45
commit e2e608048d
3 changed files with 2 additions and 14 deletions

View File

@@ -54,15 +54,6 @@ impl Shader for ThinkingShader {
}
}
#[derive(Debug)]
struct GayBarberShader {}
impl Shader for GayBarberShader {
fn draw(&self, coords: &VirtualCoordinates, frame: usize) -> RGB8 {
Hsv::new_srgb((frame as u8).wrapping_add(coords.x).wrapping_add(coords.y), 255, sin8((frame % 128) as u8)).into_rgb8()
}
}
impl<T: Surface> IdleTask<T> {
pub fn new<S: Surfaces<Surface = T>>(surfaces: &mut S) -> Self {
IdleTask {
@@ -123,7 +114,7 @@ impl TestShader {
Self::SweepY => Self::SinX,
Self::SinX => Self::SinY,
Self::SinY => Self::Metaballs,
Self::Metaballs => Self::RGB
Self::Metaballs => Self::Red
}
}
}