From d1c63bf672c8244ccaf8100d23d2a15054c83443 Mon Sep 17 00:00:00 2001 From: Weicao-CatilGrass <1992414357@qq.com> Date: Sun, 13 Apr 2025 22:43:26 +0800 Subject: 简单修改构建脚本 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .init/init_project.bat | 2 +- core/src/player.rs | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.init/init_project.bat b/.init/init_project.bat index cbd0f09..9b4fc7d 100644 --- a/.init/init_project.bat +++ b/.init/init_project.bat @@ -20,7 +20,7 @@ popd :: 图标下载 echo Downloading icon11 ... ( from github.com/icon11-community/Folder-Ico.git ) pushd ..\.init -git clone https://github.com/icon11-community/Folder-Ico.git || ( +git clone git@github.com:icon11-community/Folder-Ico.git || ( echo [ Failed ] pause exit /b 2 diff --git a/core/src/player.rs b/core/src/player.rs index 92430b8..84bf730 100644 --- a/core/src/player.rs +++ b/core/src/player.rs @@ -45,10 +45,14 @@ impl PlayerInfo { /// saturation : 饱和度 /// value : 明度 /// return -> 自身 - pub fn color_hue(&mut self, hue: i32, saturation: f32, value: f32) -> &mut Self { + pub fn color_hsv(&mut self, hue: i32, saturation: f32, value: f32) -> &mut Self { self.color_hue = hue.clamp(0, 360); self.color_saturation = saturation.clamp(0.0, 1.0); self.color_value = value.clamp(0.0, 1.0); self } + + pub fn color_hsv(&mut self, hue: i32) -> &mut Self { + + } } \ No newline at end of file -- cgit