set default text color to #ffffff
This commit is contained in:
parent
77cec015b1
commit
604b1c833b
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue