Interface ColorTransform

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ColorTransform
Defines a transformation on a color.
  • Method Details

    • transform

      Color transform(Color color)
      Transforms the specified color.
      Parameters:
      color - The original color to transform.
      Returns:
      The transformed color.
    • alpha

      static ColorTransform alpha(int alpha)
    • brightness

      static ColorTransform brightness(float brightnessFactor)