From 479fc382924e6f867f6fd4adf37ec4d7a2b9cedd Mon Sep 17 00:00:00 2001 From: Mat Groves Date: Fri, 26 Apr 2024 17:29:11 +0100 Subject: [PATCH] remove function --- src/scene/container/utils/mixColors.ts | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/scene/container/utils/mixColors.ts b/src/scene/container/utils/mixColors.ts index 107274cdd4..57b8bd3e74 100644 --- a/src/scene/container/utils/mixColors.ts +++ b/src/scene/container/utils/mixColors.ts @@ -36,26 +36,3 @@ export function mixStandardAnd32BitColors(localColorRGB: number, localAlpha: num return sharedBGRColor + (globalAlpha << 24); } - -/** - * Takes two hex colors, multiplies them together and returns the result. - * @param color1 - the first color to multiply - * @param color2 - the second color to multiply - * @returns - the multiplied color - */ -export function multiplyHexColors(color1: number, color2: number): number -{ - const r1 = (color1 >> 16) & 0xFF; - const g1 = (color1 >> 8) & 0xFF; - const b1 = color1 & 0xFF; - - const r2 = (color2 >> 16) & 0xFF; - const g2 = (color2 >> 8) & 0xFF; - const b2 = color2 & 0xFF; - - const r = r1 * r2; - const g = g1 * g2; - const b = b1 * b2; - - return (r << 16) + (g << 8) + b; -}