Object ColorUtils

  • All Implemented Interfaces:

    
    public class ColorUtils
    
                        

    Miscellaneous Color utility methods.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static ColorUtils INSTANCE
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static Integer parseRGBAColor(String $self) Returns a corresponding Int color of this String.
      final static Integer setAlphaComponent(Integer $self, Float alpha) Sets the alpha component of this color.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • parseRGBAColor

         final static Integer parseRGBAColor(String $self)

        Returns a corresponding Int color of this String.

        Supported formats are:

        #RRGGBB
        #RRGGBBAA
        Returns:

        The corresponding color as an int.

      • setAlphaComponent

         final static Integer setAlphaComponent(Integer $self, Float alpha)

        Sets the alpha component of this color.

        Parameters:
        alpha - The alpha component of the color to create, in (0..
        Returns:

        The color as an int.