diff options
| author | Weicao-CatilGrass <1992414357@qq.com> | 2025-04-13 22:43:26 +0800 |
|---|---|---|
| committer | Weicao-CatilGrass <1992414357@qq.com> | 2025-04-13 22:43:26 +0800 |
| commit | d1c63bf672c8244ccaf8100d23d2a15054c83443 (patch) | |
| tree | 492e6301979a4ab9bf66e571e0c5c4eb77182a25 | |
| parent | b45b4046efeff9938a6778ffe162e39af2a0d1ff (diff) | |
简单修改构建脚本
| -rw-r--r-- | .init/init_project.bat | 2 | ||||
| -rw-r--r-- | 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 |
