From 67aca6926ffd8894cba636e0aa773c91c3685306 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=B6=9B?= Date: Tue, 14 Jan 2025 09:08:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3shade=20scale=E5=8F=8D?= =?UTF-8?q?=E7=AE=97=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- color-module/src/reversing.rs | 6 +++--- src/color_functions/color_module_bg.wasm | Bin 509266 -> 509266 bytes 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/color-module/src/reversing.rs b/color-module/src/reversing.rs index 90137c6..be18289 100644 --- a/color-module/src/reversing.rs +++ b/color-module/src/reversing.rs @@ -42,17 +42,17 @@ impl MixReversing { let r_factor = if basic_color.red == 0.0 { 0.0 } else { - (basic_color.red - mixed_result.red) / (0.0 - basic_color.red) + (mixed_result.red - basic_color.red) / (0.0 - basic_color.red) }; let g_factor = if basic_color.green == 0.0 { 0.0 } else { - (basic_color.green - mixed_result.green) / (0.0 - basic_color.green) + (mixed_result.green - basic_color.green) / (0.0 - basic_color.green) }; let b_factor = if basic_color.blue == 0.0 { 0.0 } else { - (basic_color.blue - mixed_result.blue) / (0.0 - basic_color.blue) + (mixed_result.blue - basic_color.blue) / (0.0 - basic_color.blue) }; let average = (r_factor + g_factor + b_factor) / 3.0; diff --git a/src/color_functions/color_module_bg.wasm b/src/color_functions/color_module_bg.wasm index fe4451c9dc34fb4cbe60fc1300a5b5c6cc2b45e1..a6228b2851b161cafbff32c91add95234b21b7e3 100644 GIT binary patch delta 64 zcmccAC4Z?)zM+M23sZO5^vT6cs?#@=G3ic!TFfLj{dXCY{&b@fCh2z9awZ^V24WT< OW(8ul?XKnQynX;U%ojZX delta 75 zcmccAC4Z?)zM+M23sZL)BiHn4qgt ZV(pIQOhC*G#4JF}3dC&N9n0AT{Q%|J7=Hi&