@@ -41,19 +41,19 @@ def _to_int(colors: tuple[Any, Any, Any]) -> tuple[int, ...]:
4141 hsl = _to_int (colorsys .rgb_to_hls (* rgb ))
4242 elif color_re := self .RE_RGB .match (color ):
4343 rgb = _to_int ((color_re .group (1 ), color_re .group (2 ), color_re .group (3 )))
44- color_hex = "{:02x}{:02x}{:02x}" .format (* rgb )
44+ color_hex = "{0 :02x}{1 :02x}{2 :02x}" .format (* rgb )
4545 hsv = ImageColor .getcolor (f"#{ color_hex } " , "HSV" )
4646 hsl = _to_int (colorsys .rgb_to_hls (* rgb ))
4747 elif color_re := self .RE_HSV .match (color ):
4848 hsv = _to_int ((color_re .group (1 ), color_re .group (2 ), color_re .group (3 )))
4949 rgb = _to_int (colorsys .hsv_to_rgb (* hsv ))
50- color_hex = "{:02x}{:02x}{:02x}" .format (* rgb )
50+ color_hex = "{0 :02x}{1 :02x}{2 :02x}" .format (* rgb )
5151 hsl = _to_int (colorsys .rgb_to_hls (* rgb ))
5252 elif color_re := self .RE_HSL .match (color ):
5353 hsl = _to_int ((color_re .group (1 ), color_re .group (2 ), color_re .group (3 )))
5454 rgb = _to_int (colorsys .hls_to_rgb (* hsl ))
5555 hsv = _to_int (colorsys .rgb_to_hsv (* rgb ))
56- color_hex = "{:02x}{:02x}{:02x}" .format (* rgb )
56+ color_hex = "{0 :02x}{1 :02x}{2 :02x}" .format (* rgb )
5757 else :
5858 embed : Embed = Embed (title = t .error_parse_color_title (color ), description = t .error_parse_color_example )
5959 await reply (ctx , embed = embed )
0 commit comments