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

support adding ios9 custom waves color #26

Closed yujiaaoyujia closed 5 years ago

yujiaaoyujia commented 5 years ago

Adding ios9 custom waves color. For example:

const siriWave = new SiriWave({
  container: document.getElementById('siriwave'),
  style: 'ios9',
  waveColors: [
    { color: '255, 255, 255', supportLine: true },
    { color: '255, 0, 0' },
    { color: '0, 255, 0' },
    { color: '0, 0, 255' }
  ]
})