52template<
typename RGB_T>
65 template<
int hRadius,
int vRadius>
70 template<
int hRadius,
int vRadius>
75 template<
int hRadius,
int vRadius>
80 template<
typename Coord>
86 template<
typename Coord>
92 template<
typename Coord>
95 mImpl.drawRing(
color, cx, cy, r, thickness, mode);
98 template<
typename Coord>
100 Coord thickness,
LineCap cap = LineCap::FLAT,
102 mImpl.drawStrokeLine(
color, x0, y0, x1, y1, thickness, cap, mode);
Canvas types for gfx primitives (implementation)
FASTLED_FORCE_INLINE bool has(int x, int y) const
FASTLED_FORCE_INLINE int size() const
FASTLED_FORCE_INLINE void drawLine(const RGB_T &color, Coord x0, Coord y0, Coord x1, Coord y1, DrawMode mode=DrawMode::DRAW_MODE_BLEND) FL_NO_EXCEPT
FASTLED_FORCE_INLINE const RGB_T & at(int x, int y) const
FASTLED_FORCE_INLINE Canvas(fl::span< RGB_T > buf, int w, int h)
FASTLED_FORCE_INLINE void blurGaussian()
FASTLED_FORCE_INLINE RGB_T & at(int x, int y)
FASTLED_FORCE_INLINE Canvas(fl::shared_ptr< RGB_T > ptr, int w, int h)
FASTLED_FORCE_INLINE void drawRing(const RGB_T &color, Coord cx, Coord cy, Coord r, Coord thickness, DrawMode mode=DrawMode::DRAW_MODE_BLEND) FL_NO_EXCEPT
FASTLED_FORCE_INLINE void drawDisc(const RGB_T &color, Coord cx, Coord cy, Coord r, DrawMode mode=DrawMode::DRAW_MODE_BLEND) FL_NO_EXCEPT
gfx::Canvas< RGB_T > mImpl
FASTLED_FORCE_INLINE void blurGaussian(alpha8 dimFactor)
FASTLED_FORCE_INLINE void blurGaussian(alpha16 dimFactor)
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) FL_NO_EXCEPT
Convenience alias for CRGB canvas — use fl::CanvasRGB for no-template syntax.
#define FASTLED_FORCE_INLINE
Defines the 8-bit red, green, and blue (RGB) pixel type in the fl namespace.
LineCap
Line cap styles for stroke operations.
u8 u8 fract8 blur_amount FL_NO_EXCEPT
gfx::LineCap LineCap
Line cap style.
Base definition for an LED controller.
Representation of an 8-bit RGB pixel (Red, Green, Blue)
Unsigned 16-bit alpha / brightness — UNORM16.
Unsigned 8-bit alpha / brightness — UNORM8.
Simple rectangular canvas for graphics operations Combines a pixel buffer with dimensions for cache-o...