From a4fb5d2cfdee2585b3411e659699e9f368ee415c Mon Sep 17 00:00:00 2001 From: Benjamin Stigsen Date: Fri, 28 Jan 2022 21:53:14 +0100 Subject: [PATCH] Fix gx.Color math operations (#13315) --- vlib/gx/color.v | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vlib/gx/color.v b/vlib/gx/color.v index fdcfcbe3dc..02adf891b3 100644 --- a/vlib/gx/color.v +++ b/vlib/gx/color.v @@ -144,7 +144,7 @@ pub fn (c Color) + (c2 Color) Color { r: c.r + c2.r g: c.g + c2.g b: c.b + c2.b - a: c.b + c2.a + a: c.a + c2.a } } @@ -153,7 +153,7 @@ pub fn (c Color) - (c2 Color) Color { r: c.r - c2.r g: c.g - c2.g b: c.b - c2.b - a: c.b - c2.a + a: c.a - c2.a } } @@ -162,7 +162,7 @@ pub fn (c Color) * (c2 Color) Color { r: c.r * c2.r g: c.g * c2.g b: c.b * c2.b - a: c.b * c2.a + a: c.a * c2.a } } @@ -171,7 +171,7 @@ pub fn (c Color) / (c2 Color) Color { r: c.r / c2.r g: c.g / c2.g b: c.b / c2.b - a: c.b / c2.a + a: c.a / c2.a } }