This commit is contained in:
Felix Pankratz 2024-12-08 15:40:14 +01:00
parent 4a7a3fd008
commit 4f5cc216dd

View File

@ -102,7 +102,7 @@ void draw_bezier(int x1, int y1, int x2, int y2, int x3, int y3) {
int x = interpolate(xa, xb, percent);
int y = interpolate(ya, yb, percent);
matrix->drawPixel(x, y, matrix->color565(255, 80, 83));
matrix->drawPixel(x, y, matrix->color565(106, 95, 219));
}
}
@ -137,12 +137,12 @@ void loop() {
blob.x_coords[end_offset],
blob.y_coords[end_offset]
);
//matrix->drawPixel(blob.x_coords[i], blob.y_coords[i], matrix->color565(128, 128, 128));
matrix->drawPixel(blob.x_coords[i], blob.y_coords[i], matrix->color565(128, 128, 128));
blob.x_coords[i+1] += random(-1, 2);
if (blob.x_coords[i+1] >= PANEL_WIDTH) {
blob.x_coords[i+1] = PANEL_WIDTH - 1;
}
if (blob.x_coords[i+1] < 0) {
if (blob.x_coords[i+1] < 0) {
blob.x_coords[i+1] = 0;
}
//blob.y_coords[i+1] += random(-1, 2);