aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-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