From b45a78b60136c3887430d309d2f78ed972c1fbc8 Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Wed, 2 Oct 2024 16:47:32 -0400 Subject: ball colors --- balls.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'balls.h') diff --git a/balls.h b/balls.h index 73ab14c..3d0202c 100644 --- a/balls.h +++ b/balls.h @@ -10,11 +10,16 @@ typedef struct { double x, y; } Vector; +typedef struct { + float r, g, b; +} Color; + typedef struct { Point p; /* position [m] */ Vector v; /* velocity [m/s] */ double r; /* radius [m] */ double m; /* mass [kg] */ + Color color; } Ball; Point addPt(Point p, Point q); -- cgit v1.2.3