Interface ColorHelper


@NonExtendable public interface ColorHelper
Provides an interface for easily manipulating colors.
Since:
2.0.0
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    static int
    transition(int start, int end, double delta)
    Linearly interpolates between a starting and ending color.
    static Rgba
    transition(Rgba start, Rgba end, double delta)
    Linearly interpolates between a starting and ending color.
    static Rgb
    transition(Rgb start, Rgb end, double delta)
    Linearly interpolates between a starting and ending color.
  • Method Details

    • transition

      static Rgba transition(Rgba start, Rgba 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
    • transition

      static Rgb transition(Rgb start, Rgb 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
    • 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