Steel blue circle

This commit is contained in:
Greg Shuflin committed 2026-07-06 17:35:38 -07:00
1 parent c4c5353843
commit 45cd9f7f49
1 file changed
+2 -12
+2 -12
View File
@@ -6,18 +6,8 @@ fn main() {
fn view(app: &App) {
let draw = app.draw();
let bkgcolor = Color::srgba(0.3, 0.4, 0.7, 0.5);
draw.background().color(bkgcolor);
let pad = 25.0;
draw.background().color(PLUM);
let win = app.window_rect();
let win_p = win.pad(pad);
let square = geom::Rect::from_w_h(100.0f32, 100.0f32).top_left_of(win_p);
draw.rect().xy(square.xy()).wh(square.wh()).color(PLUM);
//.z_degrees(45.0);
let circle = square.below(square).shift_y(-pad);
draw.ellipse().xy(circle.xy()).wh(circle.wh()).color(SALMON);
draw.ellipse().color(STEEL_BLUE);
}