Untitled

mail@pastecode.io avatar
unknown
plain_text
11 days ago
404 B
1
Indexable
Never
<!DOCTYPE html>
<html>
<head>
  <title>Canvas Example</title>
</head>
<body>
  <canvas id="myCanvas" width="500" height="500"></canvas>
  <script>
    var canvas = document.getElementById('myCanvas');
    var context = canvas.getContext('2d');
    
    // Desenhar um quadrado vermelho
    context.fillStyle = 'red';
    context.fillRect(50, 50, 100, 100);
  </script>
</body>
</html>

Leave a Comment