Feat: don't segment polygons in favicon

This commit is contained in:
Dorian Zedler 2023-03-11 21:48:41 +01:00
parent 3d32fa6bd8
commit cb29aaf7f7
Signed by: dozedler
GPG key ID: 989DE36109AFA354
2 changed files with 43 additions and 2 deletions

View file

@ -26,7 +26,13 @@ async fn handler(Query(properties): Query<ImageProperties>) -> impl axum::respon
context.paint().unwrap();
polygon::draw_polygon_of_polygons((200.0, 200.0), 200.0, 6, &context, properties.dark_mode);
polygon::draw_polygon_of_segmented_polygons(
(200.0, 200.0),
200.0,
6,
&context,
properties.dark_mode,
);
let mut data: Vec<u8> = Vec::new();
surface.write_to_png(&mut data).unwrap();