Upload images on your Twinkly lights #9
Anders-Holst
started this conversation in
Effects
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Finally I had some time to put this together - somewhat late but the season is not over yet: Upload arbitrary pictures or animated gifs on your Twinkly led lights.
Some disclaimers: It assumes fairly dense 2D layouts to make sense. Too fine details will not be visible of course. Also note that colors like brown or dark gray will essentially appear as dim yellow or dim white on the leds, so the impression will not be perfect. There is no smoothing or "anti-aliasing" used in this code - it just picks the color from the image that happens to be right under the position corresponding to each led. All in all this means that it works best for small drawn or computer generated pictures with clear colors in large contiguous areas, such as gifs. Real photos might not look as good as expected.
It is included in the repo from today, Dec 26. To use it from the command line, call it as:
If you start it from within Python you can also give some options, regarding how the image is scaled to fit the leds:
Beta Was this translation helpful? Give feedback.
All reactions