(frame: &mut Frame, p0: iced::Point, p1: iced::Point, width: f32, color: Color)
| 451 | } |
| 452 | |
| 453 | fn stroke_segment(frame: &mut Frame, p0: iced::Point, p1: iced::Point, width: f32, color: Color) { |
| 454 | let path = canvas::Path::line(p0, p1); |
| 455 | frame.stroke( |
| 456 | &path, |
| 457 | canvas::Stroke::default() |
| 458 | .with_width(width) |
| 459 | .with_color(color), |
| 460 | ); |
| 461 | } |
| 462 | |
| 463 | fn draw_styled_line_segment( |
| 464 | frame: &mut Frame, |
no test coverage detected