~starkingdoms/starkingdoms

ref: 2a3588e2273c14d4e5a71da0abcbc449376072a3 starkingdoms/crates/unified/src/client/starguide/orbit.rs -rw-r--r-- 496 bytes
2a3588e2ghostly_zsh fix: zoom to projection x2 17 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use crate::{ecs::StarguideOrbitImage, prelude::*};

pub fn starguide_orbit_plugin(app: &mut App) {
    //app.add_systems(Update, update_orbits);
}

fn update_orbits(
    orbit_image: Res<StarguideOrbitImage>,
    mut images: ResMut<Assets<Image>>,
) {
    let Some(image) = images.get_mut(&orbit_image.0) else {
        error!("Orbit prediction image not found");
        return
    };

    for i in 0..100 {
        image.set_color_at(i, 100, Color::linear_rgb(1.0, 0.0, 0.0)).unwrap();
    }
}