Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/colorutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ CRGB& nblend( CRGB& existing, const CRGB& overlay, fract8 amountOfOverlay )



void nblend( CRGB* existing, CRGB* overlay, uint16_t count, fract8 amountOfOverlay)
void nblend( CRGB* existing, const CRGB* overlay, uint16_t count, fract8 amountOfOverlay)
{
for( uint16_t i = count; i; --i) {
nblend( *existing, *overlay, amountOfOverlay);
Expand Down Expand Up @@ -411,7 +411,7 @@ CHSV& nblend( CHSV& existing, const CHSV& overlay, fract8 amountOfOverlay, TGrad



void nblend( CHSV* existing, CHSV* overlay, uint16_t count, fract8 amountOfOverlay, TGradientDirectionCode directionCode )
void nblend( CHSV* existing, const CHSV* overlay, uint16_t count, fract8 amountOfOverlay, TGradientDirectionCode directionCode )
{
if(existing == overlay) return;
for( uint16_t i = count; i; --i) {
Expand Down
6 changes: 3 additions & 3 deletions src/colorutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -504,11 +504,11 @@ CHSV& nblend( CHSV& existing, const CHSV& overlay, fract8 amountOfOverlay,
/// @param overlay the color array to blend into existing
/// @param count the number of colors to process
/// @param amountOfOverlay the fraction of overlay to blend into existing
void nblend( CRGB* existing, CRGB* overlay, uint16_t count, fract8 amountOfOverlay);
void nblend( CRGB* existing, const CRGB* overlay, uint16_t count, fract8 amountOfOverlay);

/// @copydoc nblend(CRGB*, CRGB*, uint16_t, fract8)
/// @copydoc nblend(CRGB*, const CRGB*, uint16_t, fract8)
/// @param directionCode the direction to travel around the color wheel
void nblend( CHSV* existing, CHSV* overlay, uint16_t count, fract8 amountOfOverlay,
void nblend( CHSV* existing, const CHSV* overlay, uint16_t count, fract8 amountOfOverlay,
TGradientDirectionCode directionCode = SHORTEST_HUES);

/// @} ColorBlends
Expand Down
Loading