From 41c60e38620ac68e32bcb977723e232ba12ecf4a Mon Sep 17 00:00:00 2001 From: Genny Date: Tue, 12 Oct 2021 00:48:58 -0500 Subject: Actually implement image iterator I forgot to implement next, oops! --- src/block/extension/graphiccontrol.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/block') diff --git a/src/block/extension/graphiccontrol.rs b/src/block/extension/graphiccontrol.rs index 6bbe4ea..b595554 100644 --- a/src/block/extension/graphiccontrol.rs +++ b/src/block/extension/graphiccontrol.rs @@ -75,7 +75,9 @@ impl GraphicControl { &mut self.delay_time } - //TODO: Transparency index setter + pub fn is_transparent(&self) -> bool { + self.packed & 0b000_000_0_1 > 0 + } } impl From<[u8; 4]> for GraphicControl { -- cgit 1.4.1-3-g733a5