From de98323593ce3713559ffa24f84cf7614475ef0a Mon Sep 17 00:00:00 2001 From: Dianliang233 Date: Tue, 9 Jan 2024 12:07:24 +0800 Subject: [PATCH] Improvements for color calculation --- src/tools/armorColor/App.vue | 45 ++++++++++- src/tools/beaconColor/App.vue | 51 ++++++++----- src/tools/blockDistribution/App.vue | 2 +- src/utils/color/bedrock.ts | 28 +++++++ src/utils/{colorUtils.ts => color/index.ts} | 84 +++++++++++++-------- src/utils/color/java.ts | 28 +++++++ 6 files changed, 183 insertions(+), 55 deletions(-) create mode 100644 src/utils/color/bedrock.ts rename src/utils/{colorUtils.ts => color/index.ts} (70%) create mode 100644 src/utils/color/java.ts diff --git a/src/tools/armorColor/App.vue b/src/tools/armorColor/App.vue index c45fcbfa..b33a3df5 100644 --- a/src/tools/armorColor/App.vue +++ b/src/tools/armorColor/App.vue @@ -1,14 +1,25 @@