use anyhow::Result;
use runarium::{
configs::video_config::{
Color, FileConfig, Font, LapDataConfig, PaceDistConfig, RouteColor,
RouteScale, RouteVideoConfig,
},
generators::route_video::progressive_route_with_config,
};
fn main() -> Result<()> {
let route_scale = RouteScale::new(
0.2, 0.1, 0.1, );
let colors = RouteColor::new(
[0.0, 0.0, 255.0, 0.0], [0.0, 255.0, 0.0, 0.0], [255.0, 255.0, 255.0, 0.0], [0.0, 165.0, 255.0, 0.0], );
let pace_dist = PaceDistConfig::new(
0.6, 2, Font::Simplex, None, true, true, );
let lap_data = LapDataConfig::new(
(0.5, 0.09), 0.5, 1, Font::Simplex, Color::White, true, true, true, );
let file_config = FileConfig::new(
"source/example.fit".to_string(),
"source/example.jpg".to_string(),
"outputs/video.mp4".to_string(),
);
let config = RouteVideoConfig::new(
route_scale,
colors,
pace_dist,
lap_data,
file_config,
true, true, true, );
progressive_route_with_config(config)?;
Ok(())
}