mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-14 10:35:53 +00:00
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))
This commit is contained in:
+1
-12
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user