FastLED 3.9.15
Loading...
Searching...
No Matches

◆ Canvas() [1/2]

template<typename RGB_T>
fl::gfx::Canvas< RGB_T >::Canvas ( fl::span< RGB_T > buf,
int w,
int h )
inline

Definition at line 76 of file canvas.h.

77 : ownership(buf), pixels(buf.data()), width(w), height(h) {}
fl::variant< fl::span< RGB_T >, fl::shared_ptr< RGB_T > > ownership
Definition canvas.h:70
RGB_T * pixels
Definition canvas.h:72
Simple rectangular canvas for graphics operations Combines a pixel buffer with dimensions for cache-o...
Definition canvas.h:66

References FL_NOEXCEPT.