24template<
typename Coord>
58#ifndef FL_GFX_POLYGON_DEFAULT_MAXN
59#if FL_PLATFORM_HAS_SMALL_STACK
60#define FL_GFX_POLYGON_DEFAULT_MAXN 8
62#define FL_GFX_POLYGON_DEFAULT_MAXN 32
66#ifndef FL_GFX_POLYGON_DEFAULT_CHUNK
67#if FL_PLATFORM_HAS_SMALL_STACK
68#define FL_GFX_POLYGON_DEFAULT_CHUNK 16
70#define FL_GFX_POLYGON_DEFAULT_CHUNK 64
75template<
typename RGB_T>
struct Canvas;
76template<
typename RGB_T>
struct CanvasMapped;
79template<
int hRadius,
int vRadius,
typename RGB_T>
82template<
int hRadius,
int vRadius,
typename RGB_T>
85template<
int hRadius,
int vRadius,
typename RGB_T>
89template<
int hRadius,
int vRadius,
typename RGB_T>
92template<
int hRadius,
int vRadius,
typename RGB_T>
95template<
int hRadius,
int vRadius,
typename RGB_T>
100template<
typename PixelT,
typename Coord>
104template<
typename PixelT,
typename Coord>
108template<
typename PixelT,
typename Coord>
112template<
typename PixelT,
typename Coord>
137template<
typename RGB_T>
158 template<
int hRadius,
int vRadius>
163 template<
int hRadius,
int vRadius>
168 template<
int hRadius,
int vRadius>
173 template<
typename Coord>
174 inline void drawLine(
const RGB_T&
color, Coord x0, Coord y0, Coord x1, Coord y1,
179 template<
typename Coord>
185 template<
typename Coord>
186 inline void drawRing(
const RGB_T&
color, Coord cx, Coord cy, Coord r, Coord thickness,
191 template<
typename Coord>
217template<
typename RGB_T>
233 template<
int hRadius,
int vRadius>
238 template<
int hRadius,
int vRadius>
243 template<
int hRadius,
int vRadius>
fl::CanvasRGB canvas(fl::span< CRGB >(leds, NUM_LEDS), WIDTH, HEIGHT)
Unsigned alpha types with UNORM semantics (GPU industry standard).
#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...
Generic canvas for any pixel type (e.g.
PolyFill
Fill backend for drawPolygon Both backends use the even-odd rule and the same row/vertex conventions;...
void drawStrokeLine(Canvas< PixelT > &canvas, const PixelT &color, Coord x0, Coord y0, Coord x1, Coord y1, Coord thickness, LineCap cap, fl::DrawMode mode=fl::DrawMode::DRAW_MODE_BLEND) FL_NO_EXCEPT
LineCap
Line cap styles for stroke operations.
void drawLine(Canvas< PixelT > &canvas, const PixelT &color, Coord x0, Coord y0, Coord x1, Coord y1, fl::DrawMode mode=fl::DrawMode::DRAW_MODE_BLEND) FL_NO_EXCEPT
============================================================================
void blurGaussian(Canvas< RGB_T > &canvas, alpha8 dimFactor) FL_NO_EXCEPT
Compile-time Gaussian blur with independent H/V radii.
void drawRing(Canvas< PixelT > &canvas, const PixelT &color, Coord cx, Coord cy, Coord r, Coord thickness, fl::DrawMode mode=fl::DrawMode::DRAW_MODE_BLEND) FL_NO_EXCEPT
void drawPolygon(Canvas< PixelT > &canvas, const PixelT &color, fl::span< const PolyPoint< Coord > > pts, fl::DrawMode mode=fl::DrawMode::DRAW_MODE_BLEND) FL_NO_EXCEPT
Fill selects the polygon backend (PolyFill::Exact by default; PolyFill::ABuffer for the faster 8x4 A-...
void drawDisc(Canvas< PixelT > &canvas, const PixelT &color, Coord cx, Coord cy, Coord r, fl::DrawMode mode=fl::DrawMode::DRAW_MODE_BLEND) FL_NO_EXCEPT
Polygon vertex (x, y coordinate pair) for drawPolygon C++11 aggregate: PolyPoint<float> p{3....
u8 u8 fract8 blur_amount FL_NO_EXCEPT
MapRedBlackTree< Key, T, Compare, fl::allocator_slab< char > > map
gfx::PolyPoint< Coord > PolyPoint
Polygon vertex (x, y coordinate pair) for drawPolygon.
gfx::LineCap LineCap
Line cap style.
Base definition for an LED controller.
Unsigned 16-bit alpha / brightness — UNORM16.
Unsigned 8-bit alpha / brightness — UNORM8.
void drawStrokeLine(const RGB_T &color, Coord x0, Coord y0, Coord x1, Coord y1, Coord thickness, LineCap cap=LineCap::FLAT, fl::DrawMode mode=fl::DrawMode::DRAW_MODE_BLEND) FL_NO_EXCEPT
Canvas(fl::span< RGB_T > buf, int w, int h) FL_NO_EXCEPT
void blurGaussian(fl::alpha8 dimFactor) FL_NO_EXCEPT
fl::variant< fl::span< RGB_T >, fl::shared_ptr< RGB_T > > ownership
const RGB_T & at(int x, int y) const FL_NO_EXCEPT
RGB_T & at(int x, int y) FL_NO_EXCEPT
void blurGaussian() FL_NO_EXCEPT
void drawPolygon(const RGB_T &color, const PolyPoint< Coord >(&pts)[N], fl::DrawMode mode=fl::DrawMode::DRAW_MODE_BLEND) FL_NO_EXCEPT
int size() const FL_NO_EXCEPT
void drawRing(const RGB_T &color, Coord cx, Coord cy, Coord r, Coord thickness, fl::DrawMode mode=fl::DrawMode::DRAW_MODE_BLEND) FL_NO_EXCEPT
void drawLine(const RGB_T &color, Coord x0, Coord y0, Coord x1, Coord y1, fl::DrawMode mode=fl::DrawMode::DRAW_MODE_BLEND) FL_NO_EXCEPT
void drawPolygon(const RGB_T &color, fl::span< const PolyPoint< Coord > > pts, fl::DrawMode mode=fl::DrawMode::DRAW_MODE_BLEND) FL_NO_EXCEPT
Canvas(fl::shared_ptr< RGB_T > ptr, int w, int h) FL_NO_EXCEPT
void drawDisc(const RGB_T &color, Coord cx, Coord cy, Coord r, fl::DrawMode mode=fl::DrawMode::DRAW_MODE_BLEND) FL_NO_EXCEPT
void blurGaussian(fl::alpha16 dimFactor) FL_NO_EXCEPT
bool has(int x, int y) const FL_NO_EXCEPT
void blurGaussian(fl::alpha16 dimFactor) FL_NO_EXCEPT
const RGB_T & at(int x, int y) const FL_NO_EXCEPT
void blurGaussian() FL_NO_EXCEPT
int size() const FL_NO_EXCEPT
void blurGaussian(fl::alpha8 dimFactor) FL_NO_EXCEPT
RGB_T & at(int x, int y) FL_NO_EXCEPT
CanvasMapped(fl::span< RGB_T > buf, const XYMap &map) FL_NO_EXCEPT
bool has(int x, int y) const FL_NO_EXCEPT
XYMap-backed canvas for non-rectangular or remapped layouts.