From b974ead0dc97d8d73d530de6c011ef7203a67120 Mon Sep 17 00:00:00 2001 From: Laurens Valk Date: Tue, 25 Aug 2020 13:31:12 +0200 Subject: [PATCH] api/common/ColorLight: drop hsv function The on() method takes a color type, which is an HSV color, so a separate hsv method is not needed. hub.light.on(Color.GREEN) hub.light.on(Color(120)) hub.light.on(Color(h=120, s=100, 50)) --- pybricks/_common.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/pybricks/_common.py b/pybricks/_common.py index 0d70668..1298cf7 100644 --- a/pybricks/_common.py +++ b/pybricks/_common.py @@ -442,8 +442,7 @@ class ColorLight: """Turns on the light at the specified color. Arguments: - color (Color): Color of the light. The light turns off if you - choose ``None`` or a color that is not available. + color (Color): Color of the light. """ pass @@ -451,16 +450,6 @@ class ColorLight: """Turns off the light.""" pass - def hsv(self, hue, saturation=100, value=100): - """Sets the hue, saturation and brightness of the light. - - Arguments: - hue (:ref:`hue`): Hue of the color. - saturation (:ref:`percentage`): Saturation of the color. - value (:ref:`percentage`): Brightness value of the color. - """ - pass - def pattern(self, pattern, duration): """Makes the light follow a color pattern as a function of time.