1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 06:10:06 -04:00

Add painter region as example

This commit is contained in:
Emil Ernerfeldt
2020-04-24 18:32:27 +02:00
parent 7459aa60a4
commit 39e17a7562
7 changed files with 105 additions and 23 deletions

View File

@@ -451,10 +451,11 @@ pub fn mesh_command(
fill_closed_path(out_mesh, options, &path.0, fill_color);
}
if let Some(outline) = outline {
let typ = if closed { Closed } else { Open };
paint_path(
out_mesh,
options,
Closed,
typ,
&path.0,
outline.color,
outline.width,