FastLED 3.10.10
Loading...
Searching...
No Matches

◆ drawPolygon() [2/4]

template<typename PixelT, typename Coord, int N, int MAXN = FL_GFX_POLYGON_DEFAULT_MAXN, int CHUNK = FL_GFX_POLYGON_DEFAULT_CHUNK, PolyFill Fill = PolyFill::Exact>
void fl::gfx::drawPolygon ( Canvas< PixelT > & canvas,
const PixelT & color,
const PolyPoint< Coord >(&) pts[N],
fl::DrawMode mode = fl::DrawMode::DRAW_MODE_BLEND )
inline

Definition at line 1614 of file primitives.h.

1616 {
1618 canvas, color, fl::span<const PolyPoint<Coord>>(pts, N), mode);
1619}
fl::CanvasRGB canvas(fl::span< CRGB >(leds, NUM_LEDS), WIDTH, HEIGHT)
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-...
Polygon vertex (x, y coordinate pair) for drawPolygon C++11 aggregate: PolyPoint<float> p{3....
Definition canvas.h:25

References canvas, drawPolygon(), and fl::FL_NO_EXCEPT.

+ Here is the call graph for this function: