More testing
This commit is contained in:
@@ -17,7 +17,7 @@ class ColorRandomizerMatrix : public MatrixAnimation {
|
||||
uint8_t _numColors, CRGB* _colors, ColorRandomizerType _type) :
|
||||
MatrixAnimation(_matrix, _refName, _updateTime), numColors(_numColors),
|
||||
colors(new CRGB[_numColors]), fade(_fade), colorRandomizerInt(0),
|
||||
scale(DEFAULT_MATRIX_FADER) {
|
||||
scale(DEFAULT_MATRIX_FADER), type(_type) {
|
||||
for(uint8_t i = 0; i < _numColors; i++) {
|
||||
colors[i] = _colors[i];
|
||||
}
|
||||
|
||||
@@ -9,7 +9,8 @@ class RicochetHelper {
|
||||
RicochetHelper() {}
|
||||
RicochetHelper(int16_t _startPosX, int16_t _startPosY, int16_t _width, int16_t _height,
|
||||
CRGB _color) : currentX(_startPosX), currentY(_startPosY), width(_width),
|
||||
height(_height), xDir(random(0, 101) > 51 ? -1 : 1), yDir(random(0, 100) > 51 ? -1 : 1) {}
|
||||
height(_height), xDir(random(0, 101) > 51 ? -1 : 1), yDir(random(0, 100) > 51 ? -1 : 1),
|
||||
color(_color) {}
|
||||
|
||||
int16_t getCurrentXPos() { return currentX; }
|
||||
int16_t getCurrentYPos() { return currentY; }
|
||||
|
||||
Reference in New Issue
Block a user