avatar
WebOas.is Javascript Matrix Animation

Guest 134 30th Jun, 2019

JAVASCRIPT 1.12 KB
                                           
                         function canvasSupport(n) {
  return !!n.getContext
}
function canvasApp() {
  var Game_Interval;
  var n = document.createElement("canvas");
  n.id = "myCanvas";
  n.classList = "background"
  document.getElementById("canvasContainer").appendChild(n);
  if (canvasSupport(n)) {
    var e = n.getContext("2d"),
      t = n.width = window.innerWidth,
      a = n.height = window.innerHeight,
      i = Array(300).join(0).split("");
    "undefined" != typeof Game_Interval && clearInterval(Game_interval),
      Game_Interval = setInterval(o, 45)
  }
  function o() {
    e.fillStyle = "rgba(0,0,0,.07)",
      e.fillRect(0, 0, t, a),
      e.fillStyle = color,
      e.font = "10px Georgia";
    i.map(function (n, t) {
      text = String.fromCharCode(100 + 33 * Math.random()),
        x = 10 * t,
        e.fillText(text, x, n),
        n > 100 + 3e4 * Math.random() ? i[t] = 0 : i[t] = n + 10
    });
  }
}
// window.addEventListener("load", eventWindowLoaded, !1);
canvasApp();
                      
                                       
To share this paste please copy this url and send to your friends
RAW Paste Data

Comments

Authentication required

You must log in to post a comment.

Log in
    There are no comments yet.