livesplit-core 0.13.0

livesplit-core is a library that provides a lot of functionality for creating a speedrun timer.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::{
    component::separator::State,
    layout::LayoutState,
    rendering::{resource::ResourceAllocator, RenderContext},
    settings::Gradient,
};

pub(in crate::rendering) fn render(
    context: &mut RenderContext<'_, impl ResourceAllocator>,
    dim: [f32; 2],
    _component: &State,
    layout_state: &LayoutState,
) {
    context.render_background(dim, &Gradient::Plain(layout_state.separators_color));
}