You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Roger Lee Whitcomb (Jira)" <ji...@apache.org> on 2021/06/04 23:21:00 UTC
[jira] [Created] (PIVOT-1061) Support the #xxx color values
supported by HTML/CSS
Roger Lee Whitcomb created PIVOT-1061:
-----------------------------------------
Summary: Support the #xxx color values supported by HTML/CSS
Key: PIVOT-1061
URL: https://issues.apache.org/jira/browse/PIVOT-1061
Project: Pivot
Issue Type: Improvement
Components: wtk
Affects Versions: 2.0.5
Reporter: Roger Lee Whitcomb
Assignee: Roger Lee Whitcomb
Fix For: 2.1.0
According to this documentation (and other places): https://www.w3schools.com/css/css_colors_hex.asp
there is a further 3 hex digit form of color available, namely #rgb, where each is in the range of 0-f, which expands to #rrggbb (a six-digit value with both digits of each value being the same). Thus, #fff -> #ffffff, #111 -> #111111, #123 -> #112233, etc.
The only place that needs changing would be GraphicsUtilities.decodeColor, as all other places eventually call this one method.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)