From 604b1c833b3fe403da8f872df6460a498cb2f833 Mon Sep 17 00:00:00 2001 From: endernon Date: Fri, 14 Jun 2024 23:38:34 +0100 Subject: [PATCH] set default text color to #ffffff --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 28568c7..cf57932 100644 --- a/src/main.rs +++ b/src/main.rs @@ -57,7 +57,7 @@ async fn ip_png(ip: InsecureClientIp, State(font): State>) -> 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();