about summary refs log tree commit diff
path: root/src/block/extension
diff options
context:
space:
mode:
Diffstat (limited to 'src/block/extension')
-rw-r--r--src/block/extension/graphiccontrol.rs4
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 {