This commit is contained in:
2024-04-09 13:21:32 +02:00
commit 11eca63b6d
3 changed files with 35 additions and 0 deletions

15
index.html Normal file
View File

@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.9.1/p5.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.9.1/addons/p5.sound.min.js"></script>
<link rel="stylesheet" type="text/css" href="style.css">
<meta charset="utf-8" />
</head>
<body>
<main>
</main>
<script src="sketch.js"></script>
</body>
</html>

12
sketch.js Normal file
View File

@ -0,0 +1,12 @@
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
for(let j = 0; j < 50; j++){
for(let i = 0; i < 50; i++){
rect(i*50,j*50,20,20);
}
}
}

8
style.css Normal file
View File

@ -0,0 +1,8 @@
html, body {
margin: 0;
padding: 0;
}
canvas {
display: block;
}