-
Notifications
You must be signed in to change notification settings - Fork 271
Use SVG animations for RGB LED demonstrations #255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use SVG animations for RGB LED demonstrations #255
Conversation
Excellent stuff. Minor comment - with sequence animations like the "typical pattern of a On Wed, Dec 30, 2015 at 2:33 PM, Julien Vanier notifications@github.com
Andy |
Good idea to add an optional progress bar below the animation Andy. |
And did I mention these rock ? On Wed, Dec 30, 2015 at 2:59 PM, Julien Vanier notifications@github.com
Andy |
these are stellar! |
Another side effect of this PR: You can now use So no more |
4334c9c
to
0e7cf0d
Compare
## Features - Supports breathing, blinking, SOS and arbitrary patterns - Add device animations in any docs page - Device image and patterns are easy to customize ## Changes - Add helper for `device-animation` - Add JS to implement device animation - Add SVG.js to create SVG canvas and animate LED - Add `device` variable to template so that {{device}} inserts Photon/Core - Correct weird spelling in titleize helper
0e7cf0d
to
1b2fd8b
Compare
BEAUTIFUL!! |
hey @monkbroc can you make/change this PR to the staging branch? i want to test some stuff out without breaking out master branch. thanks! |
Use SVG animations for RGB LED demonstrations
Thanks @chobberoni! |
Excellent work @monkbroc ! |
Thanks Brett 👌
|
Here's an easier way to add RGB LED demonstrations to the docs. This will come in handy when the docs are updated for the Electron.
As a first step I converted the animations in the getting started section, but I think that page should only contain the 3-4 most common patterns with the advanced ones like DFU and SOS moved to a reference page.
Demo
Features
Usage
Add a line like this to the markdown docs
{{{device-animation device "breathe" "cyan" }}}
Changes
device-animation
device
variable to Handlebar template so that{{device}}
inserts Photon/CoreBrowser compatibility