Converting a Color object to its string representation

David Alayachew davidalayachew at gmail.com
Sat Dec 9 20:38:52 UTC 2023


Doesn't HexDigits cover 3/4 of these cases?

On Sat, Dec 9, 2023, 1:20 PM Michael Strauß <michaelstrau2 at gmail.com> wrote:

> If we are going to revisit the `Color` class, maybe we want to provide
> a more comprehensive string formatting API, for example:
> - full-length web strings (e.g. "#ffad341c")
> - compact web strings (e.g. "#ccc")
> - with/without the leading #
> - nearest named color ("darkgoldenrod")
>
>
> On Sat, Dec 9, 2023 at 3:44 PM Eran Leshem <eran at leshem.life> wrote:
> >
> > Hello,
> >
> >
> >
> > Can I contribute an implementation for
> https://bugs.openjdk.org/browse/JDK-8090778?
> >
> >
> >
> > Eran
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20231209/9320e2bd/attachment.htm>


More information about the openjfx-dev mailing list