Commit graph

27 commits

Author SHA1 Message Date
priestbh
85e4d6ee1b
Update comet.py 2022-12-30 14:52:01 -05:00
priestbh
bc0298b35a
Update comet.py to include a background color
Update comet.py to include a background color other than BLACK
2022-12-30 14:43:00 -05:00
73d5f61c6e
Optimize comet draw
The big pay-off is avoiding enumerate(). Removing redundant
comparisons of _ring() and avoiding modulo operations help too.
2022-11-10 16:51:02 -06:00
Paweł Ługowski
a18eb1134c pre-commit code reformat 2021-05-18 12:01:57 +07:00
Paweł Ługowski
da7484427c Fixed reverse mode for Comet / RainbowComet animation. 2021-05-03 10:49:41 +07:00
dherrada
4ada0c2017 Ran pre-commit, added licenses 2021-01-12 10:37:24 -05:00
Roy Hooper
d9fe17e91a remove self from copyright, authors 2020-08-16 20:34:18 -04:00
Roy Hooper
65376c68e4 blackness 2020-07-10 17:45:26 -04:00
Roy Hooper
2af26b7a66 add ring support - #42 2020-07-10 17:42:21 -04:00
Roy Hooper
7b5ba8222e fix color setting so that animations like blink aren't reset on color setting 2020-06-22 17:50:16 -04:00
Roy Hooper
9dd6bf8d06 Add OneShot sequence subclass to make it easy to run a sequence one time.
Also fixes some bugs in the animation sequence completion tracking.
2020-06-01 14:39:45 -04:00
Roy Hooper
96ed05c14b fix lint 2020-05-31 20:29:45 -04:00
Roy Hooper
9d661b2884 make sure bounce=False isn't ignored 2020-05-31 14:21:27 -04:00
Roy Hooper
fc752dbcfe fix comet going too far off left and right edges 2020-05-30 18:45:59 -04:00
Roy Hooper
1a59bc869b bugfixes and rainbowcomet adjustments 2020-05-30 18:33:22 -04:00
Roy Hooper
c9c7e1490a Make comet simpler, faster, able to be longer than the number of pixels, and the length specified. 2020-05-30 17:18:51 -04:00
Roy Hooper
6433e785db black... 2020-05-28 13:59:38 -04:00
Roy Hooper
6c7ef3aaac fix for rainbowcomet on regular python (Fixes #32) 2020-05-27 20:08:01 -04:00
Roy Hooper
76a3e43969 a bunch of protocol changes to allow a second stage of drawing, and to move the cycle done callback out to animate() 2020-05-18 16:27:38 -04:00
Kattni Rembor
c7d1950476 is to --. 2020-05-18 15:05:31 -04:00
Kattni Rembor
5b4b9c85eb Workaround Pylint bug. 2020-05-18 15:01:17 -04:00
Kattni Rembor
2248b4f275 Update tail length documentation. 2020-05-18 13:55:09 -04:00
Kattni Rembor
87c1f17d4d Use integer division 2020-05-18 13:49:39 -04:00
Kattni Rembor
3aa735a444 Update to have min/max tail length automatically. 2020-05-18 13:41:55 -04:00
Kattni Rembor
a90235b31a Add tail_length exception, update example imports. 2020-05-18 11:57:58 -04:00
Kattni Rembor
74b0f6c12c Docs, pylint. 2020-05-17 15:00:13 -04:00
Roy Hooper
cdd61d6be1 split library up further to help with low memory boards 2020-05-16 14:11:17 -04:00