FastLED 3.10.8
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 1212 of file channel.cpp.hpp.

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

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

+ Here is the call graph for this function: