4 Replies Latest reply on Sep 28, 2012 9:38 AM by AttaBoy2

    I'm trying to place an image on a canvass

    AttaBoy2 Level 3

      This is what I came up with:

       

      $(document).ready(function() {

      var canvas = document.getElementById('canvas'),

          context = canvas.getContext('2d'),

          image = new Image();

      image.src = 'pattern_054.gif';

      context.drawImage(image, 75, 220);

      });

       

      this code only works with Opera and FF.

      I'm hoping to find something that will work in chrome and safari too.