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

◆ Canvas() [2/2]

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

Definition at line 78 of file canvas.h.

79 : ownership(ptr), pixels(ptr.get()), 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.