MCPcopy Index your code
hub / github.com/FrameworkComputer/inputmodule-rs / draw_logo

Function draw_logo

fl16-inputmodules/src/graphics.rs:45–54  ·  view source on GitHub ↗
(target: &mut D, offset: Point)

Source from the content-addressed store, hash-verified

43}
44
45pub fn draw_logo<D>(target: &mut D, offset: Point) -> Result<Rectangle, D::Error>
46where
47 D: DrawTarget<Color = Rgb565>,
48{
49 let bmp: Bmp<Rgb565> = Bmp::from_slice(include_bytes!("../assets/logo.bmp")).unwrap();
50 let image = Image::new(&bmp, offset);
51 image.draw(target)?;
52
53 Ok(image.bounding_box())
54}

Callers 1

mainFunction · 0.85

Calls 1

unwrapMethod · 0.80

Tested by

no test coverage detected