Skip to content

Commit

Permalink
Additional From methods
Browse files Browse the repository at this point in the history
  • Loading branch information
kornelski committed Sep 18, 2022
1 parent 66cf3e5 commit 9299e9c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/internal/convert/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,11 @@ macro_rules! rgb_impl_from {
}

rgb_impl_from!{RGB, u8,i16}
rgb_impl_from!{RGB, u8,u16}
rgb_impl_from!{RGB, u8,u32}
rgb_impl_from!{RGB, u16,i32}
rgb_impl_from!{RGB, u16,u32}
rgb_impl_from!{RGB, u16,u64}

rgb_impl_from!{RGB, u8,f32}
rgb_impl_from!{RGB, u8,f64}
Expand All @@ -232,9 +236,13 @@ rgb_impl_from!{RGB, i16,f64}
rgb_impl_from!{RGB, i32,f64}
rgb_impl_from!{RGB, f32,f64}


rgb_impl_from!{RGBA, u16,i32}
rgb_impl_from!{RGBA, u16,u32}
rgb_impl_from!{RGBA, u16,u64}

rgb_impl_from!{RGBA, u8,i16}
rgb_impl_from!{RGBA, u8,u16}
rgb_impl_from!{RGBA, u8,u32}
rgb_impl_from!{RGBA, u8,f32}
rgb_impl_from!{RGBA, u8,f64}
rgb_impl_from!{RGBA, u16,f32}
Expand Down

0 comments on commit 9299e9c

Please sign in to comment.