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

Save as Private