Closed tawheeler closed 1 year ago
See the bold text in https://github.com/JuliaGraphics/ColorTypes.jl#rgb-plus-bgr-xrgb-rgbx-and-rgb24-the-abstractrgb-group. This is a debatable design decision but it allows generic programming without needing to know or care about the specific memory layout.
Maybe I'm missing something, but the following behavior for BGR was unexpected:
I would have expected BGR to set its red channel to 1.0, but it appears to also be using the RGB ordering.