summaryrefslogtreecommitdiff
path: root/AnimationObject.h
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2026-03-16 20:59:04 +0200
committerSyndamia <kamen@syndamia.com>2026-03-16 20:59:04 +0200
commitef4a2773e90ebc6ed7ad66bcfd4e30165c04fb93 (patch)
treef2ee90c08ae5f11692bd6c3ccf85077aab465e6b /AnimationObject.h
parent2202e87c466803eeaddd974006aa9950d8e0d067 (diff)
downloadppm_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.h17
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);