colour lib needs reviewers
ketmar via Digitalmars-d
digitalmars-d at puremagic.com
Tue Sep 13 03:19:38 PDT 2016
On Tuesday, 13 September 2016 at 02:50:02 UTC, Manu wrote:
> std.conv.to seems to 'just work' for color type conversion.
> I'd like to support string -> color conversion via std.conv.to;
> ie:
> auto c = "#FFFF00".to!RGB8;
> Is there a simple way to do that?
yes. just define a ctor that accepts string, and you're there. it
works both for classes and structs.
More information about the Digitalmars-d
mailing list