kornelski / rust-rgb

struct RGB for sharing pixels between crates
https://lib.rs/rgb
MIT License
97 stars 19 forks source link

New Luma Pixels #99

Closed ripytide closed 2 months ago

ripytide commented 2 months ago

To be reviewed after #98.

Conversions between Luma <-> Gray and GrayA <-> LumaA are also provided as well as all the other implementations for all the other pixels as normal.

It's a bit annoying how when introducing the legacy feature we'll also have to annotate lots of the various implementations macros for Gray and GrayA will have to be annotated with #[cfg(feature = "legacy")] but I think that's probably the best way.

ripytide commented 2 months ago

Applied in #102