topical media & game development

talk show tell print

graphic-javascript-vector-reflection.js / js



  window.onload = function () {
      var img = document.getElementById("photo");
      img.style.display = "none";
      var r = Raphael("holder", 600, 540);
      
      r.image(img.src, 140, 140, 320, 240);
      r.image(img.src, 140, 380, 320, 240).scale(1, -1).attr({opacity: .5});
      var gradient = { type: "linear", dots: [{color: "#000", opacity: .5}, {color: "#000"}], vector: [0, 0, 0, "100%"] };
      r.rect(0, 380, 600, 160).attr({gradient: gradient});
  };


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.