HTML Editor
<!DOCTYPE html> <html lang="en-US"> <body> <canvas id="point" width="150" height="120">Your browser does not support the canvas element. </canvas> <script> var canvas = document.getElementById('point'); var ctx = canvas.getContext('2d'); ctx.transform(1, .1, .4, 1, 0, 0); ctx.fillStyle = "#339933"; ctx.fillRect(0, 0, 100, 100); </script> </body> </html>
OUTPUT
×

Save as Private