Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <body onload="setInterval(drawe,22)" background-color="white">
- <canvas id="myCanvas" width="1000" height="1000" style="background:black;">
- </canvas>
- <script>
- var inn=prompt('Enter Text To Add To Glowing Sign:');
- var outlen=(inn.length*4);
- var ii=outlen;
- function drawe(){
- var out
- ii;
- var text = "";
- var possible = "FABCGDE0123456789";
- var canvas = document.getElementById("myCanvas");
- var ctx = canvas.getContext("2d");
- ctx.font="250px Comis Ariel"
- for(var i=0; i!=6; i++)
- text+=possible.charAt(Math.floor(Math.random()*possible.length));
- ctx.strokeStyle='#'+text;
- ctx.fillStyle="#"+text;
- var c = document.getElementById("myCanvas");
- var ctx = c.getContext("2d");
- ctx.beginPath();
- ctx.strokeText(inn,1,350,ii+=1,ii+1);
- ctx.fill();
- text='';
- if(outlen<4){
- }
- }
- </script>
- </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement