Function livesplit_core::state_helper::split_color
[−]
[src]
pub fn split_color(
timer: &Timer,
time_difference: Option<TimeSpan>,
split_number: usize,
show_segment_deltas: bool,
show_best_segments: bool,
comparison: &str,
method: TimingMethod
) -> Color
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.
split_number
: 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.