FastLED 3.9.15
Loading...
Searching...
No Matches
fl::XYPath Class Reference

Detailed Description

Definition at line 38 of file xypath.h.

#include <xypath.h>

+ Collaboration diagram for fl::XYPath:

Public Types

using AlphaFunction = fl::function<u8(float)>
 
using xy_brightness = fl::pair<vec2f, u8>
 

Public Member Functions

 XYPath (XYPathGeneratorPtr path, TransformFloat transform=TransformFloat())
 
virtual ~XYPath ()
 
vec2f at (float alpha)
 
vec2f at (float alpha, const TransformFloat &tx)
 
xy_brightness at_brightness (float alpha)
 
Tile2x2_u8 at_subpixel (float alpha)
 
void drawColor (const CRGB &color, float from, float to, Leds *leds, int steps=-1)
 
void drawGradient (const Gradient &gradient, float from, float to, Leds *leds, int steps=-1)
 
bool hasDrawBounds () const
 
string name () const
 
void rasterize (float from, float to, int steps, XYRasterU8Sparse &raster, AlphaFunction *optional_alpha_gen=nullptr)
 
void setDrawBounds (u16 width, u16 height)
 
void setScale (float scale)
 
void setTransform (const TransformFloat &transform)
 
TransformFloattransform ()
 

Static Public Member Functions

static XYPathPtr NewArchimedeanSpiralPath ()
 
static XYPathPtr NewArchimedeanSpiralPath (u16 width, u16 height)
 
static XYPathPtr NewCatmullRomPath (u16 width=0, u16 height=0, const fl::shared_ptr< CatmullRomParams > &params=fl::make_shared< CatmullRomParams >())
 
static XYPathPtr NewCirclePath ()
 
static XYPathPtr NewCirclePath (u16 width, u16 height)
 
static XYPathPtr NewCustomPath (const fl::function< vec2f(float)> &path, const rect< i16 > &drawbounds=rect< i16 >(), const TransformFloat &transform=TransformFloat(), const char *name=nullptr)
 
static XYPathPtr NewGielisCurvePath (u16 width=0, u16 height=0, const fl::shared_ptr< GielisCurveParams > &params=fl::make_shared< GielisCurveParams >())
 
static XYPathPtr NewHeartPath ()
 
static XYPathPtr NewHeartPath (u16 width, u16 height)
 
static XYPathPtr NewLinePath (const fl::shared_ptr< LinePathParams > &params=fl::make_shared< LinePathParams >())
 
static XYPathPtr NewLinePath (float x0, float y0, float x1, float y1)
 
static XYPathPtr NewPhyllotaxisPath (u16 width=0, u16 height=0, const fl::shared_ptr< PhyllotaxisParams > &args=fl::make_shared< PhyllotaxisParams >())
 
static XYPathPtr NewPointPath (float x, float y)
 
static XYPathPtr NewRosePath (u16 width=0, u16 height=0, const fl::shared_ptr< RosePathParams > &params=fl::make_shared< RosePathParams >())
 

Private Member Functions

int calculateSteps (float from, float to)
 

Private Attributes

scoped_ptr< XYRasterU8SparsemOptionalRaster
 
XYPathGeneratorPtr mPath
 
XYPathRendererPtr mPathRenderer
 

The documentation for this class was generated from the following files: