Skip fully transparent pixels

This commit is contained in:
gnxlxnxx
2023-12-22 21:44:13 +01:00
parent b157c44871
commit 79e29c6f02

View File

@@ -67,6 +67,10 @@ impl Painter {
// Get the channels
let channels = pixel.channels();
if channels[3] == 0 {
continue;
}
// Define the color
let color = Color::from(channels[0], channels[1], channels[2], channels[3]);