From 3d9500f339970498ce99e2e99470079636827482 Mon Sep 17 00:00:00 2001 From: lmp Date: Wed, 25 Oct 2023 17:46:27 +0200 Subject: [PATCH] color: let `is_transparent()` return false if alpha channel is < 255 --- lib/color.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/color.v b/lib/color.v index e899076..df98e8c 100644 --- a/lib/color.v +++ b/lib/color.v @@ -88,7 +88,7 @@ pub mut: } pub fn (c &Color) is_transparent() bool { - return c.a == 0 + return c.a < 255 } pub fn (c &Color) is_opaque() bool {