diff options
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 { |