color lib
Andrea Fontana via Digitalmars-d
digitalmars-d at puremagic.com
Mon Oct 10 06:00:31 PDT 2016
On Monday, 10 October 2016 at 08:44:49 UTC, Manu wrote:
> On 10 October 2016 at 17:29, Andrea Fontana via Digitalmars-d
> <digitalmars-d at puremagic.com> wrote:
>> On Thursday, 6 October 2016 at 14:53:52 UTC, Manu wrote:
>>>
>>> I've done another pass incorporating prior feedback, mostly
>>> focusing on documentation.
>>>
>>>
>>> http://dtest.thecybershadow.net/artifact/website-b6e2e44dd40dd7c70eb45829c02060b99ae3937b-57272ccdf902fa3f0c050d522129f2be/web/library-prerelease/std/experimental/color.html
>>>
>>> Can interested parties please give it another once-over and
>>> add
>>> further comments?
>>> How can I get this to a point where people would like to see
>>> it in phobos?
>>>
>>> Repo: https://github.com/TurkeyMan/color
>>> PR: https://github.com/dlang/phobos/pull/2845
>>
>>
>> Nice work!
>>
>> colorFromString should be colorFromRGBString :)
>
> Nar. It parses any form of colour-in-a-string.
From doc:
colorFromString Create a color from a string. May be a hex color
in the standard forms: (#/$)rgb/argb/rrggbb/aarrggbb May also be
the name of any color from the Colors enum.
It seems it reads just rgb. (+ enum)
I think that:
colorFromString("red");
colorFromString!"rgb"("#3212ff");
colorFromString!"bgra"("#ff1232dd");
makes more sense.
Andrea
More information about the Digitalmars-d
mailing list