[][src]Function livesplit_core::analysis::state_helper::split_color

pub fn split_color(
    timer: &Timer,
    time_difference: Option<TimeSpan>,
    segment_index: usize,
    show_segment_deltas: bool,
    show_best_segments: bool,
    comparison: &str,
    method: TimingMethod
) -> SemanticColor

Chooses a split color from the Layout Settings based on the current run.

  • timer: The current timer.
  • time_difference: The delta that you want to find a color for.
  • segment_index: The split number that is associated with this delta.
  • show_segment_deltas: Can show ahead gaining and behind losing colors if true.
  • show_best_segments: Can show the best segment color if true.
  • comparison: The comparison that you are comparing this delta to.
  • method: The timing method of this delta.

Returns the chosen color.