mirror of
https://git.sr.ht/~calebccff/pbsplash
synced 2026-01-12 20:48:40 -09:00
animate: fix centering on circles
This commit is contained in:
parent
a5af6e1a50
commit
4410f12762
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ void circles_wave(int frame, int w, int y_off, long dpi) {
|
|||
int dist = rad * 4;
|
||||
int amplitude = rad * 2;
|
||||
|
||||
int left = (w / 2) - (dist * n_circles / 2.0);
|
||||
int left = (w / 2) - (dist * (n_circles-1) / 2.0);
|
||||
for (unsigned int i = 0; i < n_circles; i++)
|
||||
{
|
||||
int x = left + (i * dist);
|
||||
|
|
|
|||
Loading…
Reference in a new issue