kopiro / siriwave

The Apple® Siri wave-form replicated in a JS library.
http://kopiro.github.io/siriwave/
MIT License
1.63k stars 168 forks source link

fixed live page and adding ios9 custom waves possibility #20

Closed BrutalPRO closed 6 years ago

BrutalPRO commented 6 years ago
  1. fixed live page
  2. ios9 custom waves possibility:
    • any count
    • custom color

How to use:

        var siriWave = new SiriWave({
...
            style: 'ios9',
...
            definition: [
                {color: '63, 217, 234'},  //rgb(63, 217, 234)
                {color: '62, 129, 209'},  //rgb(62, 129, 209)
                {color: '246, 56, 255'}, //rgb(246, 56, 255)
                {color: '75, 230, 192'},  //rgb(75, 230, 192)
                //{ color: '255, 255, 255' }  //
            ]
        });

definition - is an array with colors

kopiro commented 6 years ago

Awesome! Can you add in the README the definition property ? Thank you!

kopiro commented 6 years ago

Hi @BrutalPRO, your PR is out-of-date with the new ES6 code. Maybe you could rebase from master branch and add this awesome feature again :)