aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.init/init_project.bat2
-rw-r--r--core/src/player.rs6
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