56template<
typename Coord>
61template<
typename RGB_T>
74 template<
int hRadius,
int vRadius>
79 template<
int hRadius,
int vRadius>
84 template<
int hRadius,
int vRadius>
89 template<
typename Coord>
95 template<
typename Coord>
101 template<
typename Coord>
104 mImpl.drawRing(
color, cx, cy, r, thickness, mode);
107 template<
typename Coord>
109 Coord thickness,
LineCap cap = LineCap::FLAT,
111 mImpl.drawStrokeLine(
color, x0, y0, x1, y1, thickness, cap, mode);
#define FL_GFX_POLYGON_DEFAULT_CHUNK
#define FL_GFX_POLYGON_DEFAULT_MAXN
Default drawPolygon tier (MAXN vertex cap, CHUNK accumulator px) Both kernels keep their whole workin...
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 void drawPolygon(const RGB_T &color, const PolyPoint< Coord >(&pts)[N], DrawMode mode=DrawMode::DRAW_MODE_BLEND) FL_NO_EXCEPT
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 drawPolygon(const RGB_T &color, fl::span< const PolyPoint< Coord > > pts, DrawMode mode=DrawMode::DRAW_MODE_BLEND) FL_NO_EXCEPT
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.
Defines the 8-bit red, green, and blue (RGB) pixel type in the fl namespace.
PolyFill
Fill backend for drawPolygon Both backends use the even-odd rule and the same row/vertex conventions;...
LineCap
Line cap styles for stroke operations.
Polygon vertex (x, y coordinate pair) for drawPolygon C++11 aggregate: PolyPoint<float> p{3....
u8 u8 fract8 blur_amount FL_NO_EXCEPT
gfx::PolyPoint< Coord > PolyPoint
Polygon vertex (x, y coordinate pair) for drawPolygon.
gfx::LineCap LineCap
Line cap style.
Base definition for an LED controller.
#define FASTLED_FORCE_INLINE
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...