Package dev.jaxydog.astral.utility.color
Interface ColorHelper
@NonExtendable
public interface ColorHelper
Provides an interface for easily manipulating colors.
- Since:
- 2.0.0
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic inttransition(int start, int end, double delta) Linearly interpolates between a starting and ending color.static Rgbatransition(Rgba start, Rgba end, double delta) Linearly interpolates between a starting and ending color.static Rgbtransition(Rgb start, Rgb end, double delta) Linearly interpolates between a starting and ending color.
-
Method Details
-
transition
Linearly interpolates between a starting and ending color.- Parameters:
start- The start color.end- The end color.delta- The amount to transition, with a range of[0, 1].- Returns:
- A new color.
- Since:
- 2.0.0
-
transition
Linearly interpolates between a starting and ending color.- Parameters:
start- The start color.end- The end color.delta- The amount to transition, with a range of[0, 1].- Returns:
- A new color.
- Since:
- 2.0.0
-
transition
static int transition(int start, int end, double delta) Linearly interpolates between a starting and ending color.- Parameters:
start- The start color.end- The end color.delta- The amount to transition, with a range of[0, 1].- Returns:
- A new color.
- Since:
- 2.0.0
-