We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dfc2b9d + e2c1f67 commit 98da797Copy full SHA for 98da797
src/textual/color.py
@@ -53,7 +53,7 @@
53
54
55
class HSL(NamedTuple):
56
- """A color in HLS (Hue, Saturation, Lightness) format."""
+ """A color in HSL (Hue, Saturation, Lightness) format."""
57
58
h: float
59
"""Hue in range 0 to 1."""
@@ -199,12 +199,12 @@ def from_rich_color(
199
200
@classmethod
201
def from_hsl(cls, h: float, s: float, l: float) -> Color:
202
- """Create a color from HLS components.
+ """Create a color from HSL components.
203
204
Args:
205
h: Hue.
206
- l: Lightness.
207
s: Saturation.
+ l: Lightness.
208
209
Returns:
210
A new color.
0 commit comments