initialized p5 project

This commit is contained in:
2025-02-03 12:05:46 +01:00
commit ca414fd909
6 changed files with 48 additions and 0 deletions

18
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
jsconfig.json Normal file
View File

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

2
libraries/p5.min.js vendored Normal file

File diff suppressed because one or more lines are too long

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

File diff suppressed because one or more lines are too long

7
sketch.js Normal file
View File

@ -0,0 +1,7 @@
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
}

8
style.css Normal file
View File

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