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

Add Color.rgb(int) and Color.rgba(int)

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • None
    • javafx

      When copying colors from other apps (e.g. color pickers) it is simplest done by using the hex value.

      I can't see that one can create a color from a hex/int value in JavaFX, so please add so the developer can write

      Color.rgb(0xCAFEBABE)
      Color.rgba(0xCAFEBABE)

      Color.web("0xCAFEBABE") is not an alternative since it's slow in comparison, especially if one have the color in an int in the first place which is not uncommon.

            Unassigned Unassigned
            mgrev Mikael Grev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Imported: