Class LinearGradient

java.lang.Object
com.github.darksoulq.abyssallib.common.color.gradient.AbstractGradient
com.github.darksoulq.abyssallib.common.color.gradient.LinearGradient
All Implemented Interfaces:
ColorProvider

public class LinearGradient extends AbstractGradient
A standard implementation of a linear color gradient.
  • Constructor Details

    • LinearGradient

      public LinearGradient(org.bukkit.Color... colors)
      Constructs a LinearGradient with evenly spaced colors.
      Parameters:
      colors - The varargs Color stops.
    • LinearGradient

      public LinearGradient(org.bukkit.Color[] colors, float[] positions)
      Constructs a LinearGradient with specific color stop positions.
      Parameters:
      colors - The array of Color stops.
      positions - The array of positions (0.0 to 1.0).