负心的你--歌手:云南三怪
本帖最后由 宁静 于 2024-9-23 12:16 编辑 <br /><br /><style>#papa { left: -210px; width: 1280px; height: 710px; top: 150px; display: grid; place-items: center; background: teal url('https://pic.imgdb.cn/item/6305bdfc16f2c2beb163da86.jpg') no-repeat center/cover; box-shadow: 3px 3px 20px #000; position: relative; z-index: 3; }
#canv { position: absolute; bottom: 30px; cursor: pointer; box-reflect: below 0 linear-gradient(transparent, transparent 50%, rgba(255,255,255,.3)); -webkit-box-reflect: below 0 linear-gradient(transparent, transparent 50%, rgba(255,255,255,.3)); }
#lrcbox { position: absolute; left: 500px; top: 280px; font: bold 30px / 40px sans-serif; color: MintCream; text-shadow: 1px 1px 2px #000, 10px 10px 10px rgba(0, 0, 0, .35); user-select: none; }
</style>
<div id="papa">
<canvas id="canv"></canvas>
<span id="lrcbox">宁静音乐欣赏</span>
</div>
<script>
let ctx = canv.getContext('2d'),
w = canv.width =750,
h = canv.height = 60,
lines = [],
total = 80,
lineWidth = (w - 2 * total) / total,
aud = new Audio();
let lrcAr = [
['0.00','负心的你--歌手:云南三怪'],
['9.95','帖赠:恋恋风尘'],
['17.50','驻立在船头'],
['19.73','想挥挥我的手'],
['22.75','奈何气笛催你走'],
['28.51','冰冷的风雨是阵阵吹起'],
['34.21','随着那波涛声'],
['36.96','无情地落下去'],
['40.10','紧闭的双眼中'],
['43.14','想着你的情'],
['46.06','虽然你离去'],
['48.83','永远难忘记'],
['51.57','冰冷的风雨刺中我的心'],
['57.37','哎哟你呀你没良心'],
['63.45','汽笛声渐渐走'],
['65.94','我心也被带走'],
['68.78','风雨依然滴滴落'],
['73.30','看着你的背影消逝无踪'],
['80.70','喊也喊不停'],
['83.39','叫也叫不醒'],
['86.74','LRC编辑:宁静'],
['104.38','驻立在船头'],
['106.60','想挥挥我的手'],
['109.50','奈何气笛催你走'],
['115.38','冰冷的风雨是阵阵吹起'],
['121.04','随着那波涛声'],
['123.83','无情地落下去'],
['126.88','紧闭的双眼中'],
['130.06','想着你的情'],
['132.60','虽然你离去'],
['135.68','永远难忘记'],
['138.32','冰冷的风雨刺中我的心'],
['144.15','哎哟你呀你没良心'],
['150.21','汽笛声渐渐走'],
['152.77','我心也被带走'],
['155.64','风雨依然滴滴落'],
['161.18','看着你的背影消逝无踪'],
['167.26','喊也喊不停'],
['170.15','叫也叫不醒'],
['173.78','谢谢欣赏!'],
['182.64','谢谢欣赏!']
];
aud.src = 'https://aod.cos.tx.xmcdn.com/storages/a61b-audiofreehighqps/77/53/GKwRIDoKxgM0ACAAAAMT0SjM.m4a';
aud.loop = true;
aud.autoplay = true;
aud.addEventListener('timeupdate', () => {
change();
for(j=0; j<lrcAr.length; j++){
if(aud.currentTime >= lrcAr) lrcbox.innerHTML = lrcAr;
}
});
canv.onclick = () => aud.paused ? aud.play() : aud.pause();
function Line(x1,y1,x2,y2) {
this.x1 = x1;
this.y1 = y1;
this.x2 = x2;
this.y2 = y2;
lines.push(this);
}
Line.prototype.draw = function() {
ctx.beginPath();
ctx.strokeStyle = this.color;
ctx.lineWidth = lineWidth;
ctx.moveTo(this.x1, this.y1);
ctx.lineTo(this.x2,this.y2);
ctx.stroke();
}
for(let j = 0; j < total; j ++) {
let line = new Line();
line.x1 = j * lineWidth + j*2 + lineWidth / 2 + 1;
line.y1 = h;
line.x2 = line.x1;
line.y2 = 60;
line.color = 'purple';
line.draw();
}
function change() {
ctx.clearRect(0,0,w,h);
for(let item of lines) {
item.color = '#' + Math.random().toString(16).substr(-6);
item.y2 = h - (Math.random() * h);
item.draw();
}
}
change();
</script>
<br><br><br><br><br><br><br><br><br><br> @恋恋风尘 手机欣赏点击频谱音乐出来 大神喜欢这首歌,就送你了啊,佩服你那里都是高音质无损音乐。
好听好看那,静做的播放器真美{:10_402:} 这风景真漂亮! 一抹微蓝 发表于 2022-8-27 20:26
好听好看那,静做的播放器真美
蓝蓝这首是无损音乐,这个大神很厉害的,他音乐网站的都是高音质,我那边取的链接,他说喜欢这首歌我就送他{:9007:}
墨羽 发表于 2022-8-27 20:29
这风景真漂亮!
哈哈~~老大风景一般,这首是无损音乐,音质特棒
背景蓝蓝的天空真好看,播放器美美的~ 宁静 发表于 2022-8-27 20:30
哈哈~~老大风景一般,这首是无损音乐,音质特棒
我在单位小音箱放不出效果,回家可以试试,哈哈!