rename directories and add adittional dir

This commit is contained in:
Yannick7777 2025-04-02 11:01:01 +02:00
commit 905ab331f4
18 changed files with 88 additions and 0 deletions

18
1/index.html Normal file
View file

@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sketch</title>
<link rel="stylesheet" type="text/css" href="style.css">
<script src="libraries/p5.min.js"></script>
<script src="libraries/p5.sound.min.js"></script>
</head>
<body>
<script src="sketch.js"></script>
</body>
</html>

10
1/jsconfig.json Normal file
View file

@ -0,0 +1,10 @@
{
"compilerOptions": {
"target": "es6"
},
"include": [
"*.js",
"**/*.js",
"/home/melody/.vscode-oss/extensions/samplavigne.p5-vscode-1.2.16/p5types/global.d.ts"
]
}

2
1/libraries/p5.min.js vendored Normal file

File diff suppressed because one or more lines are too long

3
1/libraries/p5.sound.min.js vendored Normal file

File diff suppressed because one or more lines are too long

16
1/sketch.js Normal file
View file

@ -0,0 +1,16 @@
function drawCanvasContent(){
createCanvas(windowWidth, windowHeight)
background(255)
for (let i = 0; i <= 50; i++) {
fill(0, 0, 0, 0)
square(random(width/2), random(height/2), random(width/8, width/2))
}
}
function setup() {
drawCanvasContent();
}
function mouseMoved() {
drawCanvasContent();
}

8
1/style.css Normal file
View file

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