Open sudokit opened 1 year ago
use nannou::prelude::*; const TOTAL: f32 = 10.0; fn main() { nannou::app(model).update(update).run(); } struct Model { _window: window::Id, } fn model(app: &App) -> Model { let _window = app .new_window() .view(view) .resizable(false) .build() .unwrap(); Model { _window } } fn update(_app: &App, _model: &mut Model, _update: Update) {} fn view(app: &App, _model: &Model, frame: Frame) { let draw = app.draw(); draw.background().color(BLACK); // Drawing draw.ellipse() .x_y(0.0, 0.0) .radius(r * 2.0) .stroke(WHITE) .stroke_weight(2.0) .no_fill(); draw.to_frame(app, &frame).unwrap(); }
i have no idea whats going on but if the .resizable is set to false, its just a black screen. Normal ellipses seem to render just fine?
Could someone test to see if its the same? It may also be caused by wayland or sway (window manager like i3)
i have no idea whats going on but if the .resizable is set to false, its just a black screen. Normal ellipses seem to render just fine?