You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, a PR would be welcome, thanks for this - it reminded me to change over VectorLike and RotationLike to TypeAlias. The constructor of Vector and Rotation take VectorLike and RotationLike respectively so the constructor of Color should take ColorLike.
I need to spend some time with the docs so the APIs just show these "like" types and not the exploded values.
Creating a type alias like this:
and a convertion method like this:
and replacing Color method parameters by a ColorLike might be practical.
It will allow for instance this syntax:
Instead of explitly instantiating the Color object:
I can create a PR if you agree.
The text was updated successfully, but these errors were encountered: