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

Add Bezier Shapes #1120 (#1178)

This commit is contained in:
Xu Desheng
2022-01-31 14:26:31 -05:00
committed by GitHub
parent 4e99d8f409
commit 1f03f53dc0
11 changed files with 1488 additions and 2 deletions

View File

@@ -43,5 +43,13 @@ pub fn adjust_colors(shape: &mut Shape, adjust_color: &impl Fn(&mut Color32)) {
adjust_color(&mut v.color);
}
}
Shape::QuadraticBezier(quatratic) => {
adjust_color(&mut quatratic.fill);
adjust_color(&mut quatratic.stroke.color);
}
Shape::CubicBezier(bezier) => {
adjust_color(&mut bezier.fill);
adjust_color(&mut bezier.stroke.color);
}
}
}