summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 98a3858..cbda0c6 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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();