fixed sun-position being flipped

This commit is contained in:
Nickiel12 2023-11-11 13:07:00 -08:00
parent 4dbcfdc7ef
commit 80fb98c7ac

View file

@ -152,7 +152,7 @@ pub fn run_calendar(args: &CliArgs) {
"#d3d3d3"
};
println!("linear-gradient({}deg, {}, rgba(26, 26, 26, 0.0) 30%)", (output_state.gradient_angle_percentage * 180.0 - 90.0) as i32, gradient_color);
println!("linear-gradient({}deg, {}, rgba(26, 26, 26, 0.0) 30%)", (output_state.gradient_angle_percentage * 180.0 + 90.0) as i32, gradient_color);
}
// println!("{}", serde_json::to_string(&output_state).unwrap());