diff options
| author | Syndamia <kamen@syndamia.com> | 2026-03-16 20:59:04 +0200 |
|---|---|---|
| committer | Syndamia <kamen@syndamia.com> | 2026-03-16 20:59:04 +0200 |
| commit | ef4a2773e90ebc6ed7ad66bcfd4e30165c04fb93 (patch) | |
| tree | f2ee90c08ae5f11692bd6c3ccf85077aab465e6b /AnimationObject.h | |
| parent | 2202e87c466803eeaddd974006aa9950d8e0d067 (diff) | |
| download | ppm_graphics-ef4a2773e90ebc6ed7ad66bcfd4e30165c04fb93.tar ppm_graphics-ef4a2773e90ebc6ed7ad66bcfd4e30165c04fb93.tar.gz ppm_graphics-ef4a2773e90ebc6ed7ad66bcfd4e30165c04fb93.zip | |
feat: Implement circle and rename square
Diffstat (limited to 'AnimationObject.h')
| -rw-r--r-- | AnimationObject.h | 17 |
1 files changed, 12 insertions, 5 deletions
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); |
