Package 

Object NamedColor.Companion

    • Method Summary

      Modifier and Type Method Description
      final NamedColor from(Integer value) Attempts to convert the provided RGB integer value to a NamedColor, or returns null if there is no NamedColor with the specified RGB valueFor example, if value was 0, this would return NamedColor.BLACK, but if value was 1, it would return null
      • Methods inherited from class me.bardy.komponent.colour.NamedColor.Companion

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • from

         final NamedColor from(Integer value)

        Attempts to convert the provided RGB integer value to a NamedColor, or returns null if there is no NamedColor with the specified RGB value

        For example, if value was 0, this would return NamedColor.BLACK, but if value was 1, it would return null