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
This would replace the old from_pixel and into_pixel methods on Rgb and it should be implemented on all color types, except for Color where it doesn't make sense. They should take/output tuples with the color components in the same order as in new.
The reason for adding them is that tuples are convenient when destructuring and also a somewhat common storage format. From<(...)> and Into<(...)> could also be implemented.
The text was updated successfully, but these errors were encountered:
98: Add conversion to and from component tuples r=Ogeon a=Ogeon
I took the opportunity to generalize some Alpha implementations as well.
Closes#87.
Co-authored-by: Erik Hedvall <erikwhedvall@gmail.com>
This would replace the old
from_pixel
andinto_pixel
methods onRgb
and it should be implemented on all color types, except forColor
where it doesn't make sense. They should take/output tuples with the color components in the same order as innew
.The reason for adding them is that tuples are convenient when destructuring and also a somewhat common storage format.
From<(...)>
andInto<(...)>
could also be implemented.The text was updated successfully, but these errors were encountered: