compas icon indicating copy to clipboard operation
compas copied to clipboard

Color Error when the inputs are partly `int`

Open ZacZhangzhuo opened this issue 3 months ago • 4 comments

Describe the bug As titled.

To Reproduce

from compas.colors import Color

color = Color(0.0,0.0,0)

print(Color.coerce(color))
 File "\compas\src\compas\colors\color.py", line 585, in coerce
    raise ColorError
 compas.colors.color.ColorError

ZacZhangzhuo avatar Mar 13 '24 09:03 ZacZhangzhuo