Interface RGBLike

All Known Subinterfaces:
TextColor
All Known Implementing Classes:
NamedTextColor

public interface RGBLike
Something that can provide red, green, and blue colour components.
Since:
4.0.0
  • Method Summary

    Modifier and Type Method Description
    @org.checkerframework.common.value.qual.IntRange(from=0L, to=255L) int blue()
    Gets the blue component.
    @org.checkerframework.common.value.qual.IntRange(from=0L, to=255L) int green()
    Gets the green component.
    @org.checkerframework.common.value.qual.IntRange(from=0L, to=255L) int red()
    Gets the red component.
  • Method Details

    • red

      @org.checkerframework.common.value.qual.IntRange(from=0L, to=255L) int red()
      Gets the red component.
      Returns:
      the red component
      Since:
      4.0.0
    • green

      @org.checkerframework.common.value.qual.IntRange(from=0L, to=255L) int green()
      Gets the green component.
      Returns:
      the green component
      Since:
      4.0.0
    • blue

      @org.checkerframework.common.value.qual.IntRange(from=0L, to=255L) int blue()
      Gets the blue component.
      Returns:
      the blue component
      Since:
      4.0.0