Function draw_line
Source pub fn draw_line(
display: &mut Display,
(x1, y1): (isize, isize),
(x2, y2): (isize, isize),
)
examples/display_line.rs (
line 9)
5fn main() -> Result<()> {
6 let mut device = Device::new()?;
7 device.initialize_components()?;
8
9 gfx::draw_line(&mut device.display, (0, 0), (127, 63));
10 device.display.render()?;
11
12 Ok(())
13}