From 4a75e0979259c1336cfd7fafeb8e583e3664a363 Mon Sep 17 00:00:00 2001 From: Torrie Fischer Date: Mon, 20 Feb 2023 07:08:05 +0100 Subject: [PATCH] sprites: blob: delete old commented out code --- src/sprites/Blob.h | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/sprites/Blob.h b/src/sprites/Blob.h index ea44fc5..79c9fbe 100644 --- a/src/sprites/Blob.h +++ b/src/sprites/Blob.h @@ -70,21 +70,5 @@ public: 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); - }*/ } };