1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 05:10:03 -04:00

Make it easier to create an Outline

This commit is contained in:
Emil Ernerfeldt
2020-04-19 11:11:41 +02:00
parent 2170081221
commit 1afda00fc4
6 changed files with 18 additions and 24 deletions

View File

@@ -116,10 +116,7 @@ impl ExampleApp {
pos2(pos.x + (i as f32) * (self.size.x * 1.1), pos.y),
self.size,
),
outline: Some(Outline {
width: self.stroke_width,
color: gray(255, 255),
}),
outline: Some(Outline::new(self.stroke_width, gray(255, 255))),
});
}
region.add_paint_cmds(cmds);