Class RGB

java.lang.Object
ru.cwcode.cwutils.colors.RGB
All Implemented Interfaces:
net.kyori.adventure.util.RGBLike

public class RGB extends Object implements net.kyori.adventure.util.RGBLike
  • Constructor Summary

    Constructors
    Constructor
    Description
    RGB()
     
    RGB(int r, int g, int b)
     
    RGB(net.kyori.adventure.text.format.NamedTextColor color)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    int
     
    int
    red()
     
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.kyori.adventure.util.RGBLike

    asHSV
  • Constructor Details

    • RGB

      public RGB(net.kyori.adventure.text.format.NamedTextColor color)
    • RGB

      public RGB()
    • RGB

      public RGB(int r, int g, int b)
  • Method Details

    • red

      public int red()
      Specified by:
      red in interface net.kyori.adventure.util.RGBLike
    • green

      public int green()
      Specified by:
      green in interface net.kyori.adventure.util.RGBLike
    • blue

      public int blue()
      Specified by:
      blue in interface net.kyori.adventure.util.RGBLike
    • toString

      public String toString()
      Overrides:
      toString in class Object