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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: None
    • Component/s: 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.

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

              Created:
              Updated:
              Imported: