电流攻击,滋滋(源代码)

2024-12-19 网上源码1 0 511
郑重承诺丨总裁主题提供安全交易、信息保真!
温馨提示:
❤请在微信内部打开网站才可以支付 ❤
¥ 5
VIP折扣
    折扣详情
  • VIP会员

    免费

开通VIP尊享优惠特权
立即下载 升级会员
微信扫码咨询 微信扫码咨询
进入TA的商铺 联系官方客服
详情介绍
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>电流攻击,滋滋</title>
    <link
      rel="stylesheet"
      href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css" rel="external nofollow" 
    />
   <style>
      html,body{margin:0;padding:0;height:100dvh;width:100dvw;overflow:hidden;background:black;display:grid;place-items:center;position:relative;}</style>
  </head>
  <body>
    <canvas id="canvas"></canvas>
    <script>const ctx=canvas.getContext('2d');const pointsCount=5000;let centerX;let centerY;let points=[];let pos;const updateSize=()=>{canvas.width=window.innerWidth;canvas.height=window.innerHeight;centerX=canvas.width/2;centerY=canvas.height/2;ctx.fillStyle='black';ctx.fillRect(0,0,canvas.width,canvas.height);pos={x:0,y:centerY};points=new Array(pointsCount).fill(0).map(()=>({x:0,y:centerY,}))};updateSize();window.addEventListener('resize',updateSize);function random(min,max){const minCeiled=Math.ceil(min);const maxFloored=Math.floor(max);return Math.floor(Math.random()*(maxFloored-minCeiled+1)+minCeiled)}const draw=()=>{ctx.fillStyle='rgba(10,10,10,.2)';ctx.fillRect(0,0,canvas.width,canvas.height);points.forEach((point,index)=>{if(index%pointsCount===2){pos={x:0,y:centerY};points=new Array(pointsCount).fill(0).map(()=>({x:0,y:centerY,}))}pos.x+=Math.floor(Math.random()*2);pos.y+=random(-1,1);ctx.fillStyle=`hsla(${index*0.06+145},100%,50%,1)`;ctx.fillRect(pos.x,pos.y,2,2)});requestAnimationFrame(draw)};draw();</script>
  </body>
</html>

 

收藏 (0) 打赏

感谢您的支持,我会继续努力的!

打开微信/支付宝扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)

AI科技 网上源码1 电流攻击,滋滋(源代码) https://www.fantianqi.com/archives/3447

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务

  • 跳转示例
    • 0 +

      访问总数

    • 0 +

      会员总数

    • 0 +

      文章总数

    • 0 +

      今日发布

    • 0 +

      本周发布

    • 0 +

      运行天数

    你的前景,远超我们想象