Advertisement
BrU32

JS En FLIR SRC FINAL SRC!!!!!

Dec 16th, 2016
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. <style>
  2. body{
  3.  
  4.  
  5.  
  6. filter:invert(1800);
  7. filter:invert:brightness:(3333);
  8. }
  9.  
  10. </style>
  11.  
  12. <center>
  13. <body onload="setInterval(drawe,33)" bgcolor="black">
  14. <video id="video" autoplay hidden>
  15. </video>
  16. <canvas id="canvas" width="500" height="500" style="drawColor:#FFFFFF">
  17. <script>
  18. var inn=prompt("Enter Text:")
  19. var video = document.getElementById("video");
  20. var c = document.getElementById("canvas");
  21. var ctx = c.getContext("2d");
  22. var i=0;
  23. var mediaConfig = { video:true,audio:true};
  24. navigator.mediaDevices.getUserMedia(mediaConfig).then(function(stream) {
  25. video.src = this.window.URL.createObjectURL(stream);
  26. video.play();
  27. video.addEventListener("play", function() {i = window.setInterval(function() {
  28. ctx.drawImage(video,0,0)},40);
  29. ctx.topmost=false;
  30. ctx.draw();
  31. }, false);
  32. });
  33.  
  34. var ii=50;
  35. function drawe(){
  36. ii++;
  37. var text = "";
  38. var possible = "FABCGDE0123456789";
  39. var canvas = document.getElementById("canvas");
  40. var ctx = canvas.getContext("2d");
  41. for(var i=0; i!=6; i++)
  42. text+=possible.charAt(Math.floor(Math.random()*possible.length));
  43. ctx.font="35px Sans Serif";
  44. ctx.fillStyle="#"+text;
  45. var c = document.getElementById("canvas");
  46. var ctx = c.getContext("2d");
  47. ctx.beginPath();
  48. ctx.fillText(""+inn,Math.random()*ii+1,Math.random()*ii+1,Math.random()*ii,Math.random()*ii+1,ii+1);
  49. //ctx.rotate(18,Math.PI/180)
  50. text='';
  51. }
  52. </script>,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement