From ef4a2773e90ebc6ed7ad66bcfd4e30165c04fb93 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Mon, 16 Mar 2026 20:59:04 +0200 Subject: feat: Implement circle and rename square --- graphics.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'graphics.c') diff --git a/graphics.c b/graphics.c index b752cef..931c486 100644 --- a/graphics.c +++ b/graphics.c @@ -66,7 +66,7 @@ main() { Animation_pushEvent(&anim, 0, 120, A_Interpolate, &i1); // Yellow square - struct AO_SquareSettings s1 = { + struct AO_Square s1 = { .width = 20, .height = 20, .color = 0xFFFFFF00, }; struct AM_MoveSpin ms1 = { @@ -82,21 +82,20 @@ main() { }; Animation_pushEvent(&anim, 0, 80, AM_MoveLinear, &ml3); - // White square - struct AO_SquareSettings s4 = { - .width = 20, .height = 20, .color = 0xFFFFFFFF, + // White circle + struct AO_Circle s4 = { + .radius = 20, .color = 0xFFFFFFFF, }; struct AM_MoveLinear ml4 = { .startRow = 40, .startCol = 40, .dRow = 2, .dCol = 2, - .wrapCoordinates = true, - .callback = AO_Square, .priv = &s4, + .callback = AO_Circle, .priv = &s4, }; Animation_pushEvent(&anim, 0, 80, AM_MoveLinear, &ml4); // Green square - struct AO_SquareSettings s2 = { + struct AO_Square s2 = { .width = 35, .height = 50, .color = 0xA009FAA5, }; struct AM_MoveLinear ml2 = { -- cgit v1.2.3