Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <body> <canvas id="myCanvas">Votre navigateur ne supporte pas HTML5 élément canvas.</canvas> <script> var c=document.getElementById('myCanvas'); var ctx=c.getContext('2d'); ctx.fillStyle='#ff9311'; ctx.fillRect(10,50,80,80); </script> </body> </html>