diff options
| author | mrcodetastic <12006953+mrcodetastic@users.noreply.github.com> | 2024-07-28 23:40:30 +0100 |
|---|---|---|
| committer | mrcodetastic <12006953+mrcodetastic@users.noreply.github.com> | 2024-07-28 23:40:30 +0100 |
| commit | 3960bbed887fc6211ced5abcf8ef00ec4cbd0346 (patch) | |
| tree | 8c9c2a51247a44f5b63f6cf04168a3e3944087ba /examples/AuroraDemo/PatternFlock.h | |
| parent | f2634319ab7ebfe22fc6d2ebabcdd27879f3667e (diff) | |
updates
Diffstat (limited to 'examples/AuroraDemo/PatternFlock.h')
| -rw-r--r-- | examples/AuroraDemo/PatternFlock.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/AuroraDemo/PatternFlock.h b/examples/AuroraDemo/PatternFlock.h index 03c3fd7..8d3adc8 100644 --- a/examples/AuroraDemo/PatternFlock.h +++ b/examples/AuroraDemo/PatternFlock.h @@ -95,8 +95,8 @@ class PatternFlock : public Drawable { PVector location = boid->location; // PVector velocity = boid->velocity; // backgroundLayer.drawLine(location.x, location.y, location.x - velocity.x, location.y - velocity.y, color); - // effects.leds[XY(location.x, location.y)] += color; - effects.drawBackgroundFastLEDPixelCRGB(location.x, location.y, color); + // effects.leds[XY16(location.x, location.y)] += color; + effects.setPixel(location.x, location.y, color); if (applyWind) { boid->applyForce(wind); @@ -111,8 +111,8 @@ class PatternFlock : public Drawable { PVector location = predator.location; // PVector velocity = predator.velocity; // backgroundLayer.drawLine(location.x, location.y, location.x - velocity.x, location.y - velocity.y, color); - // effects.leds[XY(location.x, location.y)] += color; - effects.drawBackgroundFastLEDPixelCRGB(location.x, location.y, color); + // effects.leds[XY16(location.x, location.y)] += color; + effects.setPixel(location.x, location.y, color); } if (millis() - last_update_hue_ms > 200) { |
