struct RGB
for Rust
Rust is strongly typed and your RGB pixel is not compatible with my RGB pixel.
So let's all use mine :P
extern crate rgb;
let px = RGB;
assert_eq!;
let px = RGB8 new;
let inverted = px.map;
println!; // rgb(0,255,0)
About colorspaces
This crate is intentionally ignorant about flavors of RGB color spaces. Correct color management is a complex problem, and this crate aims to be the lowest common denominator.