use bevy::{ prelude::*, render::{ render_asset::RenderAssetUsages, render_resource::{Extent3d, TextureDimension, TextureFormat}, texture::Image, }, }; use bevy_mod_plotters::prelude::*; use plotters::prelude::*; const WIDTH: u32 = 500; const HEIGHT: u32 = 500; const AMP: f32 = 1.0; const FREQ: f32 = 3.0; const X_RANGE: std::ops::Range = -2f32..2f32; const Y_RANGE: std::ops::Range = -2f32..2f32; fn main() { App::new() .add_plugins((DefaultPlugins, PlottersPlugin)) .add_systems(Startup, setup) .add_systems(Update, update_image) .run(); } fn setup( mut commands: Commands, mut images: ResMut>, mut ui_materials: ResMut>, time: Res