|
|
|
@ -36,9 +36,9 @@ fn main() {
|
|
|
|
|
draw_hollow_rect_mut(&mut img, Rect::at(rect.x, rect.y).of_size(rect.width, rect.height), red);
|
|
|
|
|
let y: u32 = (rect.y-25) as u32;
|
|
|
|
|
let x: u32 = (rect.x-25) as u32;
|
|
|
|
|
//let text = format!("{}", rect.id).as_str();
|
|
|
|
|
let text = "⠨⠙⠕⠃⠗⠕⠙⠕⠱⠇⠊";
|
|
|
|
|
draw_text_mut(&mut img, red, x, y, Scale::uniform(20.0), &font, text);
|
|
|
|
|
let text = String::from(format!("{}", rect.id));
|
|
|
|
|
//let text = "⠨⠙⠕⠃⠗⠕⠙⠕⠱⠇⠊";
|
|
|
|
|
draw_text_mut(&mut img, red, x, y, Scale::uniform(20.0), &font, &text);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
img.save("out.png").unwrap();
|
|
|
|
|