![]() |
HitLib 1.5.0
VEX V5 LED animation library for PROS
|
Ties one driver to one parameter of one layer. More...
#include <led_strand.hpp>
Public Attributes | |
| LayerParam | param |
| NONE is an unused slot. | |
| uint8_t | driver |
| Index into Composition::drivers. | |
| int16_t | atZero |
| int16_t | atFull |
| const uint8_t * | curve |
| CURVE_POINTS bytes, or nullptr. | |
Ties one driver to one parameter of one layer.
The parameter is atZero when the driver reads 0 and atFull when it reads 255. atFull below atZero reverses the binding, the same way levelSource()'s fullAt below emptyAt reverses a meter.
curve, when set, points at CURVE_POINTS bytes that reshape the driver's 0-255 before the line is applied, linearly interpolated between the knots. A curve that steps makes a binding a threshold; one that eases makes it an envelope. nullptr is the straight line.
| LayerParam hitlib::LedStrand::Binding::param |
NONE is an unused slot.
| uint8_t hitlib::LedStrand::Binding::driver |
Index into Composition::drivers.
| int16_t hitlib::LedStrand::Binding::atZero |
| int16_t hitlib::LedStrand::Binding::atFull |
| const uint8_t* hitlib::LedStrand::Binding::curve |
CURVE_POINTS bytes, or nullptr.