Is UI interesting for us?
Richard (Rikki) Andrew Cattermole
richard at cattermole.co.nz
Sun Mar 26 17:11:52 UTC 2023
On 27/03/2023 5:39 AM, Guillaume Piolat wrote:
> On Sunday, 26 March 2023 at 13:35:27 UTC, Richard (Rikki) Andrew
> Cattermole wrote:
>> I am seeing a bit of a problem with gamut, its not handling color
>> spaces correctly.
>
> Absolutely. Need to find a good design for it.
You've got a real challenge on your hands. I have started again for less
core changing things.
Here is an example of why I don't think you'll be able to slot it in as-is.
https://github.com/AuburnSounds/gamut/blob/main/source/gamut/image.d#L929
That should be taking in a target colorspace, not a channel
specification (which is what PixelType is).
If every color space has an intermediary form it understands (i.e. CIE
XYZ), you can convert it to that and back again easily. I.e.
https://github.com/Project-Sidero/image/blob/master/colorimetry/sidero/colorimetry/pixel.d#L242
More information about the Digitalmars-d
mailing list