organism #3

Merged
panki merged 17 commits from organism into master 2024-12-15 15:00:50 +01:00
Showing only changes of commit 4f5cc216dd - Show all commits

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,7 +137,7 @@ 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;