31#define CORKSCREW_TOTAL_LENGTH 100
32#define CORKSCREW_TOTAL_HEIGHT 23.25
34#define CORKSCREW_TURNS 19
41 "Tests the ability to map a cork screw onto a 2D cylindrical surface");
111 for (
int dx = 0; dx < 2; ++dx) {
112 for (
int dy = 0; dy < 2; ++dy) {
113 auto data = pos_tile.
at(dx, dy);
114 vec2i16 wrapped_pos = data.first;
115 uint8_t alpha = data.second;
UICheckbox allWhite("All White", false)
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
central include file for FastLED, defines the CFastLED class/object
CLEDController * controller
Base definition for an LED controller.
static XYMap constructRectangularGrid(uint16_t width, uint16_t height, uint16_t offset=0)
Data & at(uint16_t x, uint16_t y)
@ BGR
Blue, Green, Red (0210)
UITitle festivalStickTitle("Corkscrew")
Corkscrew corkscrew(corkscrewInput)
Corkscrew::Input corkscrewInput(CORKSCREW_TOTAL_LENGTH, CORKSCREW_TOTAL_HEIGHT, CORKSCREW_TURNS, NUM_LEDS, 0)
UICheckbox splatRendering("Splat Rendering", true)
fl::Grid< CRGB > frameBuffer
#define CORKSCREW_TOTAL_LENGTH
UIDescription festivalStickDescription("Tests the ability to map a cork screw onto a 2D cylindrical surface")
#define CORKSCREW_TOTAL_HEIGHT
void clear(CRGB(&arr)[N])
Implements a simple red square effect for 2D LED grids.
Functions to generate and fill arrays with noise.
Corkscrew projection utilities.
CRGB & nscale8(uint8_t scaledown)
Scale down a RGB to N/256ths of its current brightness, using "plain math" dimming rules.
@ Blue
<div style='background:#0000FF;width:4em;height:4em;'></div>
Representation of an RGB pixel (Red, Green, Blue)