We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7308073 commit be10bc4Copy full SHA for be10bc4
materialyoucolor/palettes/tonal_palette.py
@@ -70,7 +70,7 @@ def from_hue_and_chroma(hue: float, chroma: float):
70
key_color = KeyColor(hue, chroma).create()
71
return TonalPalette(hue, chroma, key_color)
72
73
- def tone(self, tone: float) -> int:
+ def tone(self, tone: float) -> list[float]:
74
argb = self.cache.get(tone)
75
if argb is None:
76
argb = Hct.from_hct(self.hue, self.chroma, tone).to_int()
0 commit comments