clip-multiple-move-2-ref.html (258B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <canvas id="canvas" width="150" height="150"></canvas> 5 <script> 6 7 var canvas = document.getElementById('canvas'); 8 var ctx = canvas.getContext('2d'); 9 ctx.fillStyle = '#0f0'; 10 ctx.fillRect(0, 0, 150, 150); 11 12 </script> 13 </body></html>