aboutsummaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorWeicao-CatilGrass <1992414357@qq.com>2025-04-13 22:43:26 +0800
committerWeicao-CatilGrass <1992414357@qq.com>2025-04-13 22:43:26 +0800
commitd1c63bf672c8244ccaf8100d23d2a15054c83443 (patch)
tree492e6301979a4ab9bf66e571e0c5c4eb77182a25 /core/src
parentb45b4046efeff9938a6778ffe162e39af2a0d1ff (diff)
简单修改构建脚本
Diffstat (limited to 'core/src')
-rw-r--r--core/src/player.rs6
1 files changed, 5 insertions, 1 deletions
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