BrU32

JS Archive With FLIR AND Enhanced Brightness SRC

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