mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 01:24:17 +00:00
doc/*devices: improve rgb() docstring
This commit is contained in:
@@ -76,10 +76,9 @@ class ColorSensor:
|
||||
"""Measure the reflection of a surface using a red, green, and then a
|
||||
blue light.
|
||||
|
||||
Returns:
|
||||
tuple of three :ref:`percentages <percentage>`: Reflection for red,
|
||||
green, and blue light, each ranging from 0.0 (no reflection) to
|
||||
100.0 (high reflection).
|
||||
:returns: Tuple of reflections for red, green, and blue light, each
|
||||
ranging from 0.0 (no reflection) to 100.0 (high reflection).
|
||||
:rtype: (:ref:`percentage`, :ref:`percentage`, :ref:`percentage`)
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
@@ -111,10 +111,9 @@ class ColorSensor:
|
||||
"""Measure the reflection of a surface using a red, green, and then a
|
||||
blue light.
|
||||
|
||||
Returns:
|
||||
tuple of three :ref:`percentages <percentage>`: Reflection for red,
|
||||
green, and blue light, each ranging from 0.0 (no reflection) to
|
||||
100.0 (high reflection).
|
||||
:returns: Tuple of reflections for red, green, and blue light, each
|
||||
ranging from 0.0 (no reflection) to 100.0 (high reflection).
|
||||
:rtype: (:ref:`percentage`, :ref:`percentage`, :ref:`percentage`)
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
@@ -85,10 +85,9 @@ class ColorDistanceSensor:
|
||||
"""Measure the reflection of a surface using a red, green, and then a
|
||||
blue light.
|
||||
|
||||
Returns:
|
||||
tuple of three :ref:`percentages <percentage>`: Reflection for red,
|
||||
green, and blue light, each ranging from 0.0 (no reflection) to
|
||||
100.0 (high reflection).
|
||||
:returns: Tuple of reflections for red, green, and blue light, each
|
||||
ranging from 0.0 (no reflection) to 100.0 (high reflection).
|
||||
:rtype: (:ref:`percentage`, :ref:`percentage`, :ref:`percentage`)
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user