Interface ColorMapper

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 ColorMapper
Maps a color.
Since:
2.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    default int
    map(int rgba)
    Maps an RGBA color.
    map(Rgba rgba)
    Maps an RGBA color.
  • Method Details

    • map

      Rgba map(Rgba rgba)
      Maps an RGBA color.
      Parameters:
      rgba - The starting color.
      Returns:
      A converted color.
      Since:
      2.0.0
    • map

      default int map(int rgba)
      Maps an RGBA color.
      Parameters:
      rgba - The starting color.
      Returns:
      A converted color.
      Since:
      2.0.0