FastLED 3.9.15
|
Definition at line 85 of file corkscrew.h.
#include <corkscrew.h>
Classes | |
class | iterator |
Public Types | |
using | PixelStorage = fl::Variant<fl::span<CRGB>, fl::vector<CRGB, fl::allocator_psram<CRGB>>> |
Public Member Functions | |
Corkscrew (const Corkscrew &)=default | |
Corkscrew (Corkscrew &&)=default | |
Corkscrew (float totalTurns, fl::span< CRGB > dstPixels, bool invert=false, const Gap &gapParams=Gap()) | |
Corkscrew (float totalTurns, fl::u16 numLeds, bool invert=false, const Gap &gapParams=Gap()) | |
vec2f | at_exact (fl::u16 i) const |
vec2f | at_no_wrap (fl::u16 i) const |
Tile2x2_u8_wrap | at_wrap (float i) const |
iterator | begin () |
void | clear () |
fl::u16 | cylinderHeight () const |
fl::u16 | cylinderWidth () const |
fl::span< CRGB > | data () |
void | draw (bool use_multi_sampling=true) |
iterator | end () |
void | fillInputSurface (const CRGB &color) |
fl::shared_ptr< fl::Grid< CRGB > > & | getOrCreateInputSurface () |
fl::size | pixelCount () const |
CRGB * | rawData () |
void | setCachingEnabled (bool enabled) |
fl::size | size () const |
fl::Grid< CRGB > & | surface () |
fl::ScreenMap | toScreenMap (float diameter=0.5f) const |
Private Member Functions | |
Tile2x2_u8 | at_splat_extrapolate (float i) const |
Tile2x2_u8_wrap | calculateTileAtWrap (float i) const |
void | initializeBuffer () const |
void | initializeCache () const |
void | readFrom (const fl::Grid< CRGB > &source_grid, bool use_multi_sampling=true) |
void | readFromMulti (const fl::Grid< CRGB > &target_grid) const |
Private Attributes | |
bool | mCacheInitialized = false |
bool | mCachingEnabled = true |
Gap | mGapParams |
fl::u16 | mHeight = 0 |
fl::shared_ptr< fl::Grid< CRGB > > | mInputSurface |
bool | mInvert = false |
fl::u16 | mNumLeds = 144 |
bool | mOwnsPixels = false |
PixelStorage | mPixelStorage |
fl::vector< Tile2x2_u8_wrap > | mTileCache |
float | mTotalTurns = 19.0f |
fl::u16 | mWidth = 0 |