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
A standard implementation of a linear color gradient.
-
Constructor Summary
ConstructorsConstructorDescriptionLinearGradient(org.bukkit.Color... colors) Constructs a LinearGradient with evenly spaced colors.LinearGradient(org.bukkit.Color[] colors, float[] positions) Constructs a LinearGradient with specific color stop positions. -
Method Summary
Methods inherited from class AbstractGradient
get, getAt, getColors, getPositionsMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ColorProvider
filter, get
-
Constructor Details
-
LinearGradient
public LinearGradient(org.bukkit.Color... colors) Constructs a LinearGradient with evenly spaced colors.- Parameters:
colors- The varargsColorstops.
-
LinearGradient
public LinearGradient(org.bukkit.Color[] colors, float[] positions) Constructs a LinearGradient with specific color stop positions.- Parameters:
colors- The array ofColorstops.positions- The array of positions (0.0 to 1.0).
-