sprites: blob: delete old commented out code
This commit is contained in:
parent
cb938d768a
commit
4a75e09792
@ -70,21 +70,5 @@ public:
|
|||||||
|
|
||||||
pixel += blend(CRGB(blobColor), pixel, 80);
|
pixel += blend(CRGB(blobColor), pixel, 80);
|
||||||
});
|
});
|
||||||
/*uint8_t scaledWidth = std::abs(endPos.x - startPos.x);
|
|
||||||
|
|
||||||
//Log.notice("blob w=%d x=%d", scaledWidth, startPos.x);
|
|
||||||
for(uint8_t i = 0;i < scaledWidth; i++) {
|
|
||||||
// Blobs desaturate towards their tail
|
|
||||||
//Log.notice("blob i=%d w=%d x=%d", i, scaledWidth, startPos.x);
|
|
||||||
uint8_t scalePct = map8(i, 0, scaledWidth);
|
|
||||||
uint8_t val = lerp8by8(0, m_brightness, scalePct);
|
|
||||||
//CHSV blobColor(m_hue, m_saturation, quadwave8((i / (double)scaledWidth) * m_brightness));
|
|
||||||
CHSV blobColor(m_hue, m_saturation, quadwave8(val));
|
|
||||||
|
|
||||||
PhysicalCoordinates pos{startPos.x + (i*m_fadeDir), startPos.y};
|
|
||||||
|
|
||||||
CRGB src(display->pixelAt(pos));
|
|
||||||
display->pixelAt(pos) = blend(CRGB(blobColor), src, 140);
|
|
||||||
}*/
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user