14 lines
341 B
HTML
14 lines
341 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<body>
|
|
<canvas id="meinBoard" width="400" height="400" style="border: 2px solid #333;"></canvas>
|
|
|
|
<script>
|
|
// 1. Den "Pinsel" (Kontext) holen
|
|
const canvas = document.getElementById('meinBoard');
|
|
const ctx = canvas.getContext('2d');
|
|
|
|
// Hier kommt gleich dein Code hin...
|
|
</script>
|
|
</body>
|
|
</html> |