Class ColorStack.Entry
java.lang.Object
io.github.thecsdev.tcdcommons.api.client.gui.util.ColorStack.Entry
- Enclosing class:
- ColorStack
Represents an entry in the ColorStack.
Each entry consists of four float values representing the red, green, blue, and alpha channels of a color.
-
Field Summary
Modifier and TypeFieldDescriptionfinal float
An RGBA color channel value of thisColorStack.Entry
.final float
An RGBA color channel value of thisColorStack.Entry
.final boolean
When set to true, the Alpha channel will blend using theblendMethod
.final @Nullable ColorStack.BlendMethod
The blending method that will be used to blend the color values of thisColorStack.Entry
.final float
An RGBA color channel value of thisColorStack.Entry
.final float
An RGBA color channel value of thisColorStack.Entry
. -
Constructor Summary
ConstructorDescriptionEntry()
Entry
(float r, float g, float b, float a) Entry
(float r, float g, float b, float a, ColorStack.BlendMethod blendMethod) Entry
(float r, float g, float b, float a, ColorStack.BlendMethod blendMethod, boolean blendAlpha) -
Method Summary
-
Field Details
-
r
public final float rAn RGBA color channel value of thisColorStack.Entry
. -
g
public final float gAn RGBA color channel value of thisColorStack.Entry
. -
b
public final float bAn RGBA color channel value of thisColorStack.Entry
. -
a
public final float aAn RGBA color channel value of thisColorStack.Entry
. -
blendMethod
The blending method that will be used to blend the color values of thisColorStack.Entry
. -
blendAlpha
public final boolean blendAlphaWhen set to true, the Alpha channel will blend using theblendMethod
.
-
-
Constructor Details
-
Entry
public Entry() -
Entry
public Entry(float r, float g, float b, float a) -
Entry
-
Entry
public Entry(float r, float g, float b, float a, ColorStack.BlendMethod blendMethod, boolean blendAlpha)
-
-
Method Details
-
apply
-