Circle adjusted to work better but now I think hirdrac was right that it's easier to just calculate a distance from center and use that to determine light levels rather than a whole dpath.

This commit is contained in:
Zed A. Shaw 2024-12-25 06:03:11 -05:00
parent 8a94108874
commit 9ac8da30ea
7 changed files with 23 additions and 22 deletions

View file

@ -118,8 +118,9 @@ namespace matrix {
};
struct circle {
Point center;
int radius = 0;
float center_x;
float center_y;
float radius = 0.0f;
int y = 0;
int dx = 0;
int dy = 0;
@ -130,7 +131,7 @@ namespace matrix {
int width = 0;
int height = 0;
circle(Matrix &mat, Point center, int radius);
circle(Matrix &mat, Point center, float radius);
void update();
bool next();
};