Function firefly_rust::graphics::draw_image

source ·
pub fn draw_image(i: Image<'_>, p: Point, c: ImageColors)
Expand description

Render an image using the given colors.

Examples found in repository?
examples/image/main.rs (line 29)
24
25
26
27
28
29
30
extern fn update() {
    ff::clear_screen(ff::Color::Light);
    let image = unsafe { IMAGE.get().unwrap() };
    let image: ff::Image = (image).into();
    let colors = ff::ImageColors::default();
    ff::draw_image(image, ff::Point { x: 60, y: 60 }, colors);
}