Disco Strobe With Palette (w/ Halloween colors) I had a request for a version

Disco Strobe With Palette (w/ Halloween colors)
I had a request for a version of my (VERY BLINKY!) Disco Strobe animation that used custom colors, instead of the HSV rainbow color wheel. Here’s the updated version that supports custom color palettes:

The code is essentially identical to the July 2015 “Disco Strobe” posted here (with video) https://plus.google.com/u/0/112916219338292742137/posts/8GjYbFGyBGM but with two changes: first, instead of getting each color from the HSV rainbow, it gets each color from a user-defined color palette. And second, I put together a simple color palette of Purple, Orange, and Green for Halloween – and this is the default here, but you can change it to any pre-defined or custom color palette you wish.

There are also a bunch of numeric constants in the (fairly-well-commented) code, and you can tinker around with them to see what effects you like.

We should have a Halloween show-and-tell! I’m sure folks are working on some fun projects…

cool!!! thanks a lot Mark Kriegsman :slight_smile:

edit: I actually changed the white color to an incandescent color ( 0xE1A024 ). It Looks great!

Thanks! very cool and thanks for your suggestions!