#Choosing the Color type to use in my workspace

1 messages · Page 1 of 1 (latest)

fluid pagoda
#

I use both bevy and the image crate in my workspace, and right now I have my own definition of Color, which results in 3 differents representations for a Color, which I dislike. I want to use one of the two I mentionned, but I can't decide which one, what do you recommend me ?

opal raft
#
use bevy::color::Color as BColor;
use image::Color as IColor;

struct Color;
#

If you are actually using both crates then there will be times that you will receive their version from a method, and will have to deal with converting from one to another