FastLED
3.9.15
Loading...
Searching...
No Matches
fx1d.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
fl/stl/int.h
"
4
#include "
fl/math/xmap.h
"
5
#include "
fl/fx/fx.h
"
6
7
namespace
fl
{
8
9
// Abstract base class for 1D effects that use a strip of LEDs.
10
class
Fx1d
:
public
Fx
{
11
public
:
12
Fx1d
(u16 numLeds) :
Fx
(numLeds),
mXMap
(numLeds, false) {}
13
void
setXmap
(
const
XMap
&xMap) {
mXMap
= xMap; }
14
15
u16
xyMap
(u16
x
)
const
{
return
mXMap
.mapToIndex(
x
); }
16
17
protected
:
18
XMap
mXMap
;
19
};
20
21
}
// namespace fl
fl::Fx1d::xyMap
u16 xyMap(u16 x) const
Definition
fx1d.h:15
fl::Fx1d::setXmap
void setXmap(const XMap &xMap)
Definition
fx1d.h:13
fl::Fx1d::Fx1d
Fx1d(u16 numLeds)
Definition
fx1d.h:12
fl::Fx1d::mXMap
XMap mXMap
Definition
fx1d.h:18
fl::Fx::Fx
Fx(u16 numLeds)
Definition
fx.h:23
fl::XMap
Definition
xmap.h:24
fx.h
int.h
fl::x
x
Definition
transposition.cpp.hpp:24
fl
Base definition for an LED controller.
Definition
crgb.hpp:179
xmap.h
fl
fx
fx1d.h
Generated on Tue Jun 16 2026 00:06:59 for FastLED by
1.13.2