FastLED 3.10.8
Loading...
Searching...
No Matches

◆ operator()()

template<class PIXEL_TYPE>
CPixelView CPixelView< PIXEL_TYPE >::operator() ( int start,
int end )
inline

Access an inclusive subset of the LEDs in this set.

Note
The start point can be greater than end, which will result in a reverse ordering for many functions (useful for mirroring).
Parameters
startthe first element from this set for the new subset
endthe last element for the new subset

Definition at line 150 of file pixelset.h.

150{ if(dir & 0x80) { return CPixelView(leds+len+1, -len-start-1, -len-end-1); } else { return CPixelView(leds, start, end); } }
CPixelView(const CPixelView &other) FL_NO_EXCEPT
PixelSet copy constructor.
Definition pixelset.h:113
iterator end() FL_NO_EXCEPT
Makes an iterator instance for the end of the LED set.
Definition pixelset.h:482
PIXEL_TYPE *const leds
pointer to the LED data
Definition pixelset.h:108
const fl::i8 dir
direction of the LED data, either 1 or -1. Determines how the pointer is incremented.
Definition pixelset.h:105
const int len
length of the LED data, in PIXEL_TYPE units.
Definition pixelset.h:106
Represents a view/window into a set of LED pixels, providing array-like access and rich color operati...
Definition pixelset.h:103