Skip to content

Commit

Permalink
created p5.js project
Browse files Browse the repository at this point in the history
  • Loading branch information
ToMaarton committed Jan 25, 2024
1 parent 00a2f7c commit f212d1e
Show file tree
Hide file tree
Showing 9 changed files with 48 additions and 1 deletion.
1 change: 0 additions & 1 deletion README.md

This file was deleted.

18 changes: 18 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -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>
Empty file removed index.html.txt
Empty file.
10 changes: 10 additions & 0 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"compilerOptions": {
"target": "es6"
},
"include": [
"*.js",
"**/*.js",
"c:\\Users\\beute\\.vscode\\extensions\\samplavigne.p5-vscode-1.2.15\\p5types\\global.d.ts"
]
}
2 changes: 2 additions & 0 deletions libraries/p5.min.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions libraries/p5.sound.min.js

Large diffs are not rendered by default.

Empty file removed script.js.txt
Empty file.
7 changes: 7 additions & 0 deletions sketch.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
function setup() {
createCanvas(400, 400);
}

function draw() {
background(220);
}
8 changes: 8 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
html, body {
margin: 0;
padding: 0;
}

canvas {
display: block;
}

0 comments on commit f212d1e

Please sign in to comment.