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

◆ setScreenMap() [2/3]

CLEDController & CLEDController::setScreenMap ( const fl::XYMap & map)
inline

Definition at line 194 of file cled_controller.h.

194 {
195 // EngineEvents::onCanvasUiSet(this, map);
196 fl::ScreenMap screenmap = map.toScreenMap();
197 if (screenmap.getDiameter() <= 0.0f) {
198 // screen map was not set.
199 if (map.getTotal() <= (64*64)) {
200 screenmap.setDiameter(.2); // Assume small matrix is being used.
201 }
202 }
203 fl::EngineEvents::onCanvasUiSet(this, screenmap);
204 return *this;
205 }
static void onCanvasUiSet(CLEDController *strip, const ScreenMap &xymap)
void setDiameter(float diameter)
float getDiameter() const
long map(long x, long in_min, long in_max, long out_min, long out_max)

References CLEDController(), fl::ScreenMap::getDiameter(), fl::EngineEvents::onCanvasUiSet(), and fl::ScreenMap::setDiameter().

Referenced by setScreenMap().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: