diff options
author | 2022-10-05 10:49:58 -0700 | |
---|---|---|
committer | 2022-10-05 10:49:58 -0700 | |
commit | 30432cbade3d9b25c4df62656a7494db3f4ea82a (patch) | |
tree | 186ca59e50caede84ede2e2381dc01dd0483806b /graphics/src/shader.rs | |
parent | 6e7b3ced0b1daf368e44e181ecdb4ae529877eb6 (diff) | |
download | iced-30432cbade3d9b25c4df62656a7494db3f4ea82a.tar.gz iced-30432cbade3d9b25c4df62656a7494db3f4ea82a.tar.bz2 iced-30432cbade3d9b25c4df62656a7494db3f4ea82a.zip |
Readjusted namespaces, removed Geometry example as it's no longer relevant.
Diffstat (limited to 'graphics/src/shader.rs')
-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 |