Package foundry.veil.impl.quasar
Class ColorGradient
java.lang.Object
foundry.veil.impl.quasar.ColorGradient
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
static final record
-
Field Summary
-
Constructor Summary
ConstructorDescriptionColorGradient
(float red, float green, float blue, float alpha) ColorGradient
(ColorGradient.RGBPoint[] points) ColorGradient
(ColorGradient.RGBPoint[] points, ColorGradient.AlphaPoint[] alphaPoints) ColorGradient
(List<ColorGradient.RGBPoint> points, List<ColorGradient.AlphaPoint> alphaPoints) ColorGradient
(net.minecraft.world.phys.Vec3 startColor, net.minecraft.world.phys.Vec3 endColor) ColorGradient
(net.minecraft.world.phys.Vec3 startColor, net.minecraft.world.phys.Vec3 endColor, float startAlpha, float endAlpha) -
Method Summary
-
Field Details
-
CODEC
-
-
Constructor Details
-
ColorGradient
public ColorGradient(float red, float green, float blue, float alpha) -
ColorGradient
-
ColorGradient
-
ColorGradient
public ColorGradient(List<ColorGradient.RGBPoint> points, List<ColorGradient.AlphaPoint> alphaPoints) -
ColorGradient
public ColorGradient(net.minecraft.world.phys.Vec3 startColor, net.minecraft.world.phys.Vec3 endColor, float startAlpha, float endAlpha) -
ColorGradient
public ColorGradient(net.minecraft.world.phys.Vec3 startColor, net.minecraft.world.phys.Vec3 endColor)
-
-
Method Details
-
isConstant
public boolean isConstant() -
getColor
public org.joml.Vector4f getColor(float percentage) -
getColor
public org.joml.Vector4f getColor(float percentage, org.joml.Vector4f store) -
getPoints
-
getAlphaPoints
-