FastLED 3.9.15
Loading...
Searching...
No Matches
fl::gfx::CanvasMapped< RGB_T > Struct Template Reference

Detailed Description

template<typename RGB_T>
struct fl::gfx::CanvasMapped< RGB_T >

XYMap-backed canvas for non-rectangular or remapped layouts.

Uses XYMap for all pixel access — no SIMD or cache-layout optimizations. With a rectangular XYMap, produces identical results to Canvas<RGB_T>.

Definition at line 130 of file canvas.h.

#include <canvas.h>

+ Collaboration diagram for fl::gfx::CanvasMapped< RGB_T >:

Public Member Functions

 CanvasMapped (fl::span< RGB_T > buf, const XYMap &map) FL_NOEXCEPT
 
const RGB_T & at (int x, int y) const FL_NOEXCEPT
 
RGB_T & at (int x, int y) FL_NOEXCEPT
 
template<int hRadius, int vRadius>
void blurGaussian () FL_NOEXCEPT
 
template<int hRadius, int vRadius>
void blurGaussian (fl::alpha16 dimFactor) FL_NOEXCEPT
 
template<int hRadius, int vRadius>
void blurGaussian (fl::alpha8 dimFactor) FL_NOEXCEPT
 
bool has (int x, int y) const FL_NOEXCEPT
 
int size () const FL_NOEXCEPT
 

Public Attributes

int height
 
fl::span< RGB_T > pixels
 
int width
 
const XYMapxymap
 

The documentation for this struct was generated from the following file: