diff options
Diffstat (limited to '')
-rw-r--r-- | graphics/src/shader.rs | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/graphics/src/shader.rs b/graphics/src/shader.rs deleted file mode 100644 index 69679e9b..00000000 --- a/graphics/src/shader.rs +++ /dev/null @@ -1,23 +0,0 @@ -//! Supported shaders; - -use crate::Color; -use crate::gradient::Gradient; - -#[derive(Debug, Clone)] -/// Supported shaders for primitives. -pub enum Shader { - /// Fill a primitive with a solid color. - Solid(Color), - /// Fill a primitive with an interpolated color. - Gradient(Gradient) -} - -impl <'a> Into<Shader> for Gradient { - fn into(self) -> Shader { - match self { - Gradient::Linear(linear) => { - Shader::Gradient(Gradient::Linear(linear)) - } - } - } -}
\ No newline at end of file |