some drawing speedups

* speedups for addPixelColorXY, fadePixelColorXY, fadeToBlackBy
This commit is contained in:
Frank
2024-09-28 02:19:53 +02:00
parent 0555b8e5f2
commit b245112d2a
4 changed files with 16 additions and 9 deletions

View File

@@ -37,6 +37,9 @@
#define indexToVStrip(index, stripNr) ((index) | (int((stripNr)+1)<<16))
// WLEDMM replace abs8 by abs, as abs8 does not work for numbers >127
#define abs8(x) abs(x)
// effect utility functions
static uint8_t sin_gap(uint16_t in) {
if (in & 0x100) return 0;