Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8120028

Color.web() should parse "rgb(#,#,#)" and "rgba(#,#,#,#)" syntaxes

    XMLWordPrintable

Details

    Description

      In trying to create FX versions of a number of HTML5 Canvas examples I found a few of them using the color notation "rgb(int, int, int)" notation and "rgba(int, int, int, float)" notations which seem to be valid color syntaxes used in web pages, but are not parsed by our Color.web() method. Note that we do process rgb and rgba notations using the "#HHHHHH" and "#HHHHHHHH" notations which are more common. Apparently there are also hsl and hsla notations as well.

      http://www.w3.org/TR/css3-color/#rgb-color
      http://www.w3.org/TR/css3-color/#rgba-color
      http://www.w3.org/TR/css3-color/#hsl-color
      http://www.w3.org/TR/css3-color/#hsla-color

      Attachments

        Issue Links

          Activity

            People

              flar Jim Graham
              flar Jim Graham
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported: