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 --- AnimationObject.h | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'AnimationObject.h') diff --git a/AnimationObject.h b/AnimationObject.h index cec9268..95aa115 100644 --- a/AnimationObject.h +++ b/AnimationObject.h @@ -5,20 +5,27 @@ struct AO_CheckerPattern { u32 squareSize; - byte4 colorA; - byte4 colorB; + color colorA; + color colorB; }; ARGB AO_CheckerPattern(const Animation* anim, u32 frameIndex, ARGB pixel, i32 r, i32 c, void* priv); -struct AO_SquareSettings { +struct AO_Square { u32 width; u32 height; - byte4 color; + color color; }; ARGB AO_Square(const Animation* anim, u32 frameIndex, ARGB pixel, i32 r, i32 c, void* priv); +struct AO_Circle { + double radius; + color color; +}; + +ARGB AO_Circle(const Animation* anim, u32 frameIndex, ARGB pixel, i32 r, i32 c, void* priv); + struct AO_Image { RGBImage img; double zoom; @@ -32,7 +39,7 @@ struct AO_Line { double b; double c; double width; - byte4 color; + color color; }; ARGB AO_Line(const Animation* anim, u32 frameIndex, ARGB pixel, i32 r, i32 c, void* priv); -- cgit v1.2.3