adafruit / Adafruit_CircuitPython_LED_Animation

CircuitPython helper library for LED colors and animations
MIT License
53 stars 43 forks source link

adding multicolor comet animation #105

Closed FoamyGuy closed 1 year ago

FoamyGuy commented 1 year ago

This change creates a new MulticolorComet class that functions similar to the existing Comet except that it allows user to specify multiple colors and the comet will contain all of them rather than a single color that fades to black. It will try to evenly spread the colors specified across the length of the tail.

A new example is provided that illustrates usage of the animation. It was tested with Feather M4 8.0.0 beta.5 and a 96 neopixel strip

FoamyGuy commented 1 year ago

The latest commits add the * arg and a docstring for name

Thank you @tekktrik.

I think this is ready for another look.

tekktrik commented 1 year ago

Oh never mind, it's confined to the new addition!