FastLED 3.9.15
|
Corkscrew projection utilities.
You want to draw on a rectangular surface, and have it map to a GOD DAMN CORKSCREW! Well guess what, this is the file for you.
Corkscrew projection maps from Corkscrew angle height, (θ, h) to Cylindrical cartesian (w, h) space, where w = one turn of the Corkscrew. The corkscrew at (0) will map to the first index in the cylinder map at (0, 0). The last value is probly not at the max pixel value at (width - 1, height - 1), but could be.
Inputs:
Outputs:
Definition in file corkscrew.h.
#include "fl/allocator.h"
#include "fl/geometry.h"
#include "fl/math_macros.h"
#include "fl/pair.h"
#include "fl/tile2x2.h"
#include "fl/vector.h"
Go to the source code of this file.
Classes | |
class | fl::Corkscrew |
struct | fl::CorkscrewInput |
Generates a mapping from corkscrew to cylindrical coordinates. More... | |
struct | fl::CorkscrewState |
class | fl::CorkscrewState::iterator |
Namespaces | |
namespace | fl |
Implements a simple red square effect for 2D LED grids. | |