Feat: don't segment polygons in favicon
This commit is contained in:
parent
3d32fa6bd8
commit
cb29aaf7f7
2 changed files with 43 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue