From 4f5cc216dd11b8dcef61dc228a28c7f0d1873ca2 Mon Sep 17 00:00:00 2001 From: Felix Pankratz Date: Sun, 8 Dec 2024 15:40:14 +0100 Subject: [PATCH] color --- organism/src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/organism/src/main.cpp b/organism/src/main.cpp index 3fa5a83..b37f71e 100644 --- a/organism/src/main.cpp +++ b/organism/src/main.cpp @@ -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);