organism #3
@ -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 x = interpolate(xa, xb, percent);
|
||||||
int y = interpolate(ya, yb, 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.x_coords[end_offset],
|
||||||
blob.y_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);
|
blob.x_coords[i+1] += random(-1, 2);
|
||||||
if (blob.x_coords[i+1] >= PANEL_WIDTH) {
|
if (blob.x_coords[i+1] >= PANEL_WIDTH) {
|
||||||
blob.x_coords[i+1] = PANEL_WIDTH - 1;
|
blob.x_coords[i+1] = PANEL_WIDTH - 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user