1.1.1 • Published 6 years ago

sound-ripple v1.1.1

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

1、在页面引入

import { soundRipple } from "sound-ripple"

2、使用

var sbimg = new Image();//实例化图片
var can = new soundRipple();//实例化声波纹
can.width="100";//画布宽度
can.height="100";//画布高度
can.backgroundColor="#ffffff";//画布背景色
can.lineColor="#00ff00";//声波纹颜色
can.lineWidth="1";//声波纹粗细
can.draw('1236832349');//绘制声波纹
sbimg.src=can.draw('1236832349').toDataURL('image/png');//canvas转PNG图片
console.log(sbimg);
1.1.1

6 years ago

1.1.0

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago