set default text color to #ffffff

This commit is contained in:
endernon 2024-06-14 23:38:34 +01:00
parent 77cec015b1
commit 604b1c833b

View file

@ -57,7 +57,7 @@ async fn ip_png(ip: InsecureClientIp, State(font): State<FontRef<'static>>) -> i
let (x, _) = text_size(100.0, &font, &text);
let mut img = image::DynamicImage::new(x, 100, image::ColorType::Rgba8);
let textcol = Rgba([127, 127, 127, 255]);
let textcol = Rgba([255, 255, 255, 255]);
drawing::draw_text_mut(&mut img, textcol, 0, 0, 100.0, &font, &text);
let mut buf = Vec::new();