azusa
v1.0.2
Published
[![Author](https://img.shields.io/badge/author-EYHN-blue.svg?style=flat-square)](https://delusion.coding.me) [![QQ](https://img.shields.io/badge/QQ-1106996185-blue.svg?style=flat-square)](http://wpa.qq.com/msgrd?v=3&uin=&site=qq&menu=yes) [![Email](http
Downloads
3
Readme
Azusa
A WEBGL Audio Spectrum Music Visualizer.
How to use
- webpack
npm install azusa --save
import Azusa from 'azusa'
example
const azusa = new Azusa({
view: document.getElementById('app') as HTMLCanvasElement,
subdivisionSize: 1024,
cutEnd: 256
});
azusa.audio.load(testSound, undefined, (xhr: any) => {
console.log((xhr.loaded / xhr.total * 100) + '% loaded');
});
azusa.audio.Volume = 0.5;
window.addEventListener('resize', () => {
azusa.resize(window.innerWidth, window.innerHeight);
})