about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 8d94c8e..213adfc 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -144,6 +144,13 @@ impl<T: Count> Squasher<T> {
 		}
 	}
 
+	#[cfg(feature = "gifed")]
+	pub fn palette_gifed(&self) -> gifed::block::Palette {
+		use rgb::ComponentBytes;
+
+		self.palette.as_slice().as_bytes().try_into().unwrap()
+	}
+
 	/// Retrieve the palette this squasher is working from
 	pub fn palette(&self) -> &[RGB8] {
 		&self.palette