std.experimental.color, request reviews

Guillaume Chatelet via Digitalmars-d digitalmars-d at puremagic.com
Wed Jun 24 14:08:02 PDT 2015


On Wednesday, 24 June 2015 at 16:05:31 UTC, Manu wrote:
> On a tangent, I need a name for the struct that will represent 
> HSL/HSV/HSI/HCY.
> They're all basically identical, and might as well be a 
> parameter to a
> shared type... but I can't think of a name for that type! >_<
> I can't reasonably call it any of those or it would be confused,
> rather, each of those would be an alias for an instantiation of 
> each
> type.
> I'm thinking along the lines of PolarRGB? It's not really that 
> though.
> I can't think of any other good names.
> alias HSL = PolarRGB!(Type.HSL);
>
> Naming things is so hard!

I don't like PolarRGB since it doesn't have a lot to do with RGB.

HueSpace!(Type.HSL) ?


More information about the Digitalmars-d mailing list