FastLED 3.9.15
Loading...
Searching...
No Matches

◆ setScreenMap() [4/4]

Channel & fl::Channel::setScreenMap ( fl::u16 width,
fl::u16 height,
float diameter = -1.f )

Set screen map for JS canvas visualization from dimensions.

Parameters
widthGrid width in pixels
heightGrid height in pixels
diameterOptional LED diameter for canvas rendering
Returns
Reference to this channel for method chaining

Definition at line 821 of file channel.cpp.hpp.

821 {
823 return setScreenMap(xymap, diameter);
824}
XYMap xymap
Channel & setScreenMap(const fl::XYMap &map, float diameter=-1.f)
Set screen map for JS canvas visualization from XYMap.
static XYMap constructRectangularGrid(u16 width, u16 height, u16 offset=0) FL_NOEXCEPT
Definition xymap.cpp.hpp:35
u8 u8 height
Definition blur.h:186
u8 width
Definition blur.h:186

References Channel(), fl::XYMap::constructRectangularGrid(), fl::height, setScreenMap(), fl::width, and xymap.

+ Here is the call graph for this function: