FastLED 3.9.15
Loading...
Searching...
No Matches
fl::Canvas< RGB_T > Class Template Reference

Detailed Description

template<typename RGB_T>
class fl::Canvas< RGB_T >

Generic canvas for any pixel type (e.g.

Canvas<CRGB16>). All methods are force-inlined delegates — zero overhead.

Definition at line 51 of file gfx.h.

#include <gfx.h>

+ Inheritance diagram for fl::Canvas< RGB_T >:

Public Member Functions

FASTLED_FORCE_INLINE Canvas (fl::shared_ptr< RGB_T > ptr, int w, int h)
 
FASTLED_FORCE_INLINE Canvas (fl::span< RGB_T > buf, int w, int h)
 
FASTLED_FORCE_INLINE RGB_T & at (int x, int y)
 
FASTLED_FORCE_INLINE const RGB_T & at (int x, int y) const
 
template<int hRadius, int vRadius>
FASTLED_FORCE_INLINE void blurGaussian ()
 
template<int hRadius, int vRadius>
FASTLED_FORCE_INLINE void blurGaussian (alpha16 dimFactor)
 
template<int hRadius, int vRadius>
FASTLED_FORCE_INLINE void blurGaussian (alpha8 dimFactor)
 
template<typename Coord>
FASTLED_FORCE_INLINE void drawDisc (const RGB_T &color, Coord cx, Coord cy, Coord r, DrawMode mode=DrawMode::DRAW_MODE_BLEND)
 
template<typename Coord>
FASTLED_FORCE_INLINE void drawLine (const RGB_T &color, Coord x0, Coord y0, Coord x1, Coord y1, DrawMode mode=DrawMode::DRAW_MODE_BLEND)
 
template<typename Coord>
FASTLED_FORCE_INLINE void drawRing (const RGB_T &color, Coord cx, Coord cy, Coord r, Coord thickness, DrawMode mode=DrawMode::DRAW_MODE_BLEND)
 
template<typename Coord>
FASTLED_FORCE_INLINE void drawStrokeLine (const RGB_T &color, Coord x0, Coord y0, Coord x1, Coord y1, Coord thickness, LineCap cap=LineCap::FLAT, DrawMode mode=DrawMode::DRAW_MODE_BLEND)
 
FASTLED_FORCE_INLINE bool has (int x, int y) const
 
FASTLED_FORCE_INLINE int size () const
 

Private Attributes

gfx::Canvas< RGB_T > mImpl
 

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