diff options
author | Genny <gen@nyble.dev> | 2021-10-12 00:48:58 -0500 |
---|---|---|
committer | Genny <gen@nyble.dev> | 2021-10-12 00:48:58 -0500 |
commit | 41c60e38620ac68e32bcb977723e232ba12ecf4a (patch) | |
tree | 8f8bb40d535d7388a947f4b89b1d2ece6cbaba05 /src/block | |
parent | 757eab88d67a425728b87286c763387f52367196 (diff) | |
download | gifed-41c60e38620ac68e32bcb977723e232ba12ecf4a.tar.gz gifed-41c60e38620ac68e32bcb977723e232ba12ecf4a.zip |
Actually implement image iterator
I forgot to implement next, oops!
Diffstat (limited to 'src/block')
-rw-r--r-- | src/block/extension/graphiccontrol.rs | 4 |
1 files changed, 3 insertions, 1 deletions
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 { |