دوستان من یه کد از توی سایت ها ی طراحی پیدا کردم که این جوریه
کد PHP:
<!DOCTYPE html>
<html>
<head>
<title>Title</title>
<style>
html,body{
background: #000;
overflow-x: hidden;
overflow-y: hidden;
}
</style>
</head>
<body>
<canvas id="mycan"></canvas>
<script>
// Animation By Ehsan Gomnam
// CopyRight By Monister.ir
// All Rights Reserved.
function make_color(){
var colors = '0123456789ABCEDF'.split(''),
colorready='';
for(i=0;i<6;i++){
colorready+= colors[parseInt(Math.random()*16)]
}
return '#'+colorready;
}
var can=document.getElementById('mycan'),
ctx = can.getContext('2d');
can.width=window.innerWidth;
can.height=window.innerHeight;
function anim(){
var rands = {
x:Math.floor(Math.random()*window.innerWidth),
y:Math.floor(Math.random()*window.innerHeight)
}
ctx.beginPath();
ctx.fillStyle='rgba(0,0,0,.1)';
ctx.fillRect(0,0,can.width,can.height);
ctx.beginPath()
ctx.moveTo(10,500,rands.y-Math.floor(Math.random()*200))
ctx.lineTo(rands.x,rands.y);
ctx.strokeStyle=make_color()
ctx.lineWidth = Math.floor(Math.random()*10)
ctx.stroke();
}
setInterval(anim,10)
</script>
</body>
</html>
بعد الان میخوام دقیقا یه متنی روش بنویسم اینجوری مثلا
اگه میشه راهنماییم کنید ممنون