프로젝트
GitHub에서 보기
foobar404/wave.js
소개
JavaScript용 오디오 시각화 라이브러리입니다. 오디오 파일이나 오디오 스트림에 반응하는 동적 애니메이션을 만들 수 있습니다.
디자인 및 미디어측정된 스타 증가
- in 24h
- 0
- in 7 days
- +2
- in 15 days
- +2
- in 1 month
- +6
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalWave.js
Audio visualizer library for javascript.
Installation
Install With CDN
<script src="https://cdn.jsdelivr.net/gh/foobar404/wave.js/dist/bundle.js"></script>
Or NPM
npm i @foobar404/wave
Setup
If your using NPM:
import {Wave} from "@foobar404/wave";
Usage
let audioElement = document.querySelector("#audioElmId");
let canvasElement = document.querySelector("#canvasElmId");
let wave = new Wave(audioElement, canvasElement);
// Simple example: add an animation
wave.addAnimation(new wave.animations.Wave());
// Intermediate example: add an animation with options
wave.addAnimation(new wave.animations.Wave({
lineWidth: 10,
lineColor: "red",
count: 20
}));
// Expert example: add multiple animations with options
wave.addAnimation(new wave.animations.Square({
count: 50,
diamater: 300
}));
wave.addAnimation(new wave.animations.Glob({
fillColor: {gradient: ["red","blue","green"], rotate: 45},
lineWidth: 10,
lineColor: "#fff"
}));
// The animations will start playing when the provided audio element is played
// 'wave.animations' is an object with all possible animations on it.
// Each animation is a class, so you have to new-up each animation when passed to 'addAnimation'
Contributing
Get involved! Check out the Contributing Guide for how to get started.
License
관련 프로젝트 살펴보기
불러오는 중…