Class Colours

java.lang.Object
com.yetnt.utils.qol.Colours

public abstract class Colours extends Object
Abstract class which simply holds helper methods to fuck around with colours

From J3Engine

Author:
Lehlogonolo Poole
See Also:
  • Constructor Details

    • Colours

      public Colours()
  • Method Details

    • alphaChannel

      public static Color alphaChannel(Color original, int alpha)
      Overrides the alpha channel of a colour by setting it to a new one effectively discarding the old value, or setting it if it did not exist prior.
      Parameters:
      original - The original colour
      alpha - The alpha value between 0 and 255
      Returns:
      A new colour with the new alpha applied.