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

Detailed Description

template<typename RGB_T>
struct fl::gfx::Canvas< RGB_T >

Simple rectangular canvas for graphics operations Combines a pixel buffer with dimensions for cache-optimal drawing.

Definition at line 66 of file canvas.h.

#include <canvas.h>

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

Public Member Functions

 Canvas (fl::shared_ptr< RGB_T > ptr, int w, int h) FL_NOEXCEPT
 
 Canvas (fl::span< RGB_T > buf, int w, int h) FL_NOEXCEPT
 
const RGB_T & at (int x, int y) const FL_NOEXCEPT
 
RGB_T & at (int x, int y) FL_NOEXCEPT
 
template<int hRadius, int vRadius>
void blurGaussian () FL_NOEXCEPT
 
template<int hRadius, int vRadius>
void blurGaussian (fl::alpha16 dimFactor) FL_NOEXCEPT
 
template<int hRadius, int vRadius>
void blurGaussian (fl::alpha8 dimFactor) FL_NOEXCEPT
 
template<typename Coord>
void drawDisc (const RGB_T &color, Coord cx, Coord cy, Coord r, fl::DrawMode mode=fl::DrawMode::DRAW_MODE_BLEND) FL_NOEXCEPT
 
template<typename Coord>
void drawLine (const RGB_T &color, Coord x0, Coord y0, Coord x1, Coord y1, fl::DrawMode mode=fl::DrawMode::DRAW_MODE_BLEND) FL_NOEXCEPT
 
template<typename Coord>
void drawRing (const RGB_T &color, Coord cx, Coord cy, Coord r, Coord thickness, fl::DrawMode mode=fl::DrawMode::DRAW_MODE_BLEND) FL_NOEXCEPT
 
template<typename Coord>
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_NOEXCEPT
 
bool has (int x, int y) const FL_NOEXCEPT
 
int size () const FL_NOEXCEPT
 

Public Attributes

int height
 
fl::variant< fl::span< RGB_T >, fl::shared_ptr< RGB_T > > ownership
 
RGB_T * pixels
 
int width
 

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