marmalade 0.0.1

A simple UI library for video games
Documentation
1
2
3
4
5
6
7
8
9
use web_sys::HtmlImageElement;

use super::Color;

pub trait Drawer {
    fn draw_rect(&self, x: f64, y: f64, w: f64, h: f64, color: &Color);

    fn draw_image(&self, x: f64, y: f64, w: f64, h: f64, img: &HtmlImageElement);
}