diff options
-rw-r--r-- | src/lib.rs | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -32,9 +32,6 @@ impl Colour { value <<= 8; value |= blue as u32; Self { value } } - pub fn from_array(array: &[u8; 3]) -> &Colour { - unsafe { std::mem::transmute::<&[u8; 3], &Colour>(array) } - } pub fn mix<I: proportion::Internal>(bg: Self, fg: Self, proportion: Proportion<I>) -> Self { let proportion = Proportion::<u8>::new(proportion.as_u8()); let bg_mix = proportion.invert(); |