34#define CORKSCREW_TOTAL_LENGTH 100
35#define CORKSCREW_TOTAL_HEIGHT \
38#define CORKSCREW_TURNS 20.5
45 "Tests the ability to map a cork screw onto a 2D cylindrical surface");
99 uint32_t now = millis();
103 static float pos = 0;
122 for (
int dx = 0; dx < 2; ++dx) {
123 for (
int dy = 0; dy < 2; ++dy) {
124 auto data = pos_tile.
at(dx, dy);
125 vec2i16 wrapped_pos = data.first;
126 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.
@ APA102HD
APA102 LED chipset with 5-bit gamma correction.
central include file for FastLED, defines the CFastLED class/object
CLEDController * controller
Base definition for an LED controller.
Data & at(uint16_t x, uint16_t y)
static XYMap constructRectangularGrid(uint16_t width, uint16_t height, uint16_t offset=0)
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)
UIDescription festivalStickDescription("Tests the ability to map a cork screw onto a 2D cylindrical surface")
@ BGR
Blue, Green, Red (0210)
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
#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)