build123d icon indicating copy to clipboard operation
build123d copied to clipboard

Add ColorLike with Color and CSS color string

Open bernhard-42 opened this issue 1 year ago • 0 comments

As an enhancement, add ColorLike = Union[Color, str] and allow CCS strings as .color attribute, e.g. obj.color="aliceblue"

Note: Open cascade color names and CSS color names are not identical. Open cascade has most of the CSS names, but e.g. not "crimson", but it does have the same color with different prefixes ("1", "2", "3", "4") that have different vales

bernhard-42 avatar Jul 07 '24 14:07 bernhard-42