Class ColorGradient

java.lang.Object
foundry.veil.impl.quasar.ColorGradient

public class ColorGradient extends Object
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<ColorGradient> CODEC
  • Constructor Details

    • ColorGradient

      public ColorGradient(float red, float green, float blue, float alpha)
    • ColorGradient

      public ColorGradient(ColorGradient.RGBPoint[] points, ColorGradient.AlphaPoint[] alphaPoints)
    • ColorGradient

      public ColorGradient(ColorGradient.RGBPoint[] points)
    • 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

      public List<ColorGradient.RGBPoint> getPoints()
    • getAlphaPoints

      public List<ColorGradient.AlphaPoint> getAlphaPoints()