Package com.yetnt.utils.qol
Class Colours
java.lang.Object
com.yetnt.utils.qol.Colours
Abstract class which simply holds helper methods to fuck around with colours
From J3Engine
- Author:
- Lehlogonolo Poole
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ColoralphaChannel(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.
-
Constructor Details
-
Colours
public Colours()
-
-
Method Details
-
alphaChannel
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 colouralpha- The alpha value between 0 and 255- Returns:
- A new colour with the new alpha applied.
-