cdelker / schemdraw

MIT License
103 stars 20 forks source link

allow rgb tuples for segment colors #34

Closed csiegl182 closed 4 months ago

csiegl182 commented 4 months ago

Right now, the color property accepts only the names (as string values) for different colors. In order to obtain more flexibility, I would suggest to also accept rgb values.

cdelker commented 4 months ago

03cc6e27f484f604524fea9a410e29b61b0b4a20 allows the SVG backend to take color tuples (r, g, b) in the range 0-1. Matplotlib already accepts them. Both backends accept any color as a hex string such as '#FFFFFF'.

This PR fixes some type hints.

csiegl182 commented 4 months ago

Thanks for accepting this request. Sure, this is no functional fix but affects "only" type hints ;-)