Function kioto::video::draw_rectangle[][src]

pub fn draw_rectangle(x: i32, y: i32, width: i32, height: i32, color: Color)

Draw a rectangle filled with the given color.

Examples

use kioto::video;

video::draw_rectangle(0, 0, 100, 100, video::Color::WHITE);