Closed
Description
Error[E0599] no method named `line` found for reference `&egui::Painter` in the current scope
https://docs.rs/egui/latest/egui/enum.Shape.html#method.line
/// A line through many points.
pub fn line(points: Vec<Pos2>, stroke: impl Into<PathStroke>) -> Self
To Reproduce
let mut vec = Vec::new();
vec.push(Pos2 {x: 0., y: 0.});
vec.push(Pos2 {x: 10., y: 50.});
ui.painter().line(vec, (3., Color32::YELLOW));
There are no problem using line_segment
rather than ```line'''.
Desktop (please complete the following information):
- OS: Ubuntu
- Version 24.04