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

Fix sharp corners for rectangles with StrokeKind != Inside (#5675)

Oops!
This commit is contained in:
Emil Ernerfeldt
2025-02-04 14:36:29 +01:00
committed by GitHub
parent b8051cc301
commit c90b97f4ef
9 changed files with 40 additions and 16 deletions

View File

@@ -93,6 +93,19 @@ impl TessellationTest {
)
.with_blur_width(5.0),
),
(
"Additive rectangle",
RectShape::new(
sized([24.0, 12.0]),
0.0,
egui::Color32::LIGHT_RED.additive().linear_multiply(0.025),
(
1.0,
egui::Color32::LIGHT_BLUE.additive().linear_multiply(0.1),
),
StrokeKind::Outside,
),
),
];
for (_name, shape) in &mut shapes {