I am starting to experiment with FastLED and some neat functions.

I am starting to experiment with FastLED and some neat functions.

But I cannot find a detailed description/explanation of some (all?) functions.

Like “fadeToBlaclBy”: http://fastled.io/docs/3.1/group___colorutils.html#ga404d163d8a422cee2df2baac4151ca98
I want to know what the last parameter (uint8_t fadeBy) actually does.

The same goes for “fill_rainbow”:
http://fastled.io/docs/3.1/group___colorutils.html#gafcc7dac88e25736ebc49a9faf2a1c2e2
I have no idea what deltahue is doing.
I guess it widens and shortens the rainbow (distance between the colors).
But is increasing or decreasing the value making the red areas of the rainbow bigger?
I could “try and error” it or read the source code, but I hope there is a good documentation that I am missing. :slight_smile:

If you wanted to dim a pixel by 25% (64/256th) you could use:
leds[i].fadeToBlackBy( 64 );
Or if you wanted to dim the entire strip:
fadeToBlackBy(leds, NUM_LEDS, 64);

Used repeatedly, fadeToBlackBy will eventually fade all the way to black.

And have a look here for info on the fill_rainbow function:
https://plus.google.com/100542328320334100166/posts/Y5BdWFEvfo1

Thanks.
That is exactly the explanation I was looking for.

But I still think this should be in an official documentation (GitHub Wiki or http://fastled.io/docs) and not somewhere in a G+ discussion. :slight_smile:

The full docs are a slow work in progress on a moving target juggled in the middle of full day jobs and lives.

I totally understand