Michael Morgan

Results 5 comments of Michael Morgan

I was inspired by [nalgebra](https://nalgebra.org/) crate, which uses `Deref` to expose convenience properties [for `Matrix` (and vectors)](https://github.com/dimforge/nalgebra/blob/dev/src/base/coordinates.rs), and [for `Point`](https://github.com/dimforge/nalgebra/blob/dev/src/geometry/point_coordinates.rs).

@fintelia > After this change we'd have structs Rgb and RGB, crate rgb, enum variants Rgb8 and Rgb16, and type aliases RGB8 and RGB16. `rgb::RGB` and `rgb::RGB8` are not publicly...

Hmm, that is confusing. You'd be directed to the rgb crate's type if you click on "RGBA". I wonder if there's a way to hide all those methods though. The...

I added a commit that leaves the `From` impls intact for conversion to/from the `rgb` crate types, but adds simple proxy structs as `Deref` targets for component access. Let me...