-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
74 changed files
with
24,353 additions
and
22,991 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
*.DS_Store | ||
.project | ||
node_modules/* | ||
experiments/* | ||
lib_old/* | ||
lib/p5.* | ||
lib/modules | ||
docs/reference/* | ||
!*.gitkeep | ||
examples/3d/ | ||
.idea | ||
dist/ | ||
p5.zip | ||
bower-repo/ | ||
p5-website/ | ||
.vscode/settings.json | ||
.nyc_output/* | ||
coverage/ | ||
lib/p5-test.js | ||
release/ | ||
yarn.lock | ||
docs/data.json | ||
analyzer/ | ||
preview/ | ||
*.DS_Store | ||
.project | ||
node_modules/* | ||
experiments/* | ||
lib_old/* | ||
lib/p5.* | ||
lib/modules | ||
docs/reference/* | ||
!*.gitkeep | ||
examples/3d/ | ||
.idea | ||
dist/ | ||
p5.zip | ||
bower-repo/ | ||
p5-website/ | ||
.vscode/settings.json | ||
.nyc_output/* | ||
coverage/ | ||
lib/p5-test.js | ||
release/ | ||
yarn.lock | ||
docs/data.json | ||
analyzer/ | ||
preview/ | ||
__screenshots__/ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,44 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<title>P5 test</title> | ||
<meta http-equiv="pragma" content="no-cache" /> | ||
<meta http-equiv="cache-control" content="no-cache" /> | ||
<meta charset="utf-8"> | ||
|
||
<style> | ||
body{ | ||
margin:0; | ||
overflow: hidden; | ||
} | ||
body { | ||
margin: 0; | ||
overflow: hidden; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<script type="module"> | ||
import p5 from '../src/app.js'; | ||
// import calculation from './src/math/calculation.js'; | ||
<script type="module"> | ||
import p5 from '../src/app.js'; | ||
// import calculation from './src/math/calculation.js'; | ||
|
||
// p5.registerAddon(calculation); | ||
// p5.registerAddon(calculation); | ||
|
||
const sketch = function(p){ | ||
p.setup = function(){ | ||
p.createCanvas(200, 200); | ||
}; | ||
const sketch = function (p) { | ||
p.setup = function () { | ||
p.createCanvas(200, 200); | ||
}; | ||
|
||
p.draw = function(){ | ||
p.background(0, 50, 50); | ||
p.circle(100, 100, 50); | ||
p.draw = function () { | ||
p.background(0, 50, 50); | ||
p.circle(100, 100, 50); | ||
|
||
p.fill('white'); | ||
p.textSize(30); | ||
p.text('hello', 10, 30); | ||
}; | ||
}; | ||
p.fill('white'); | ||
p.textSize(30); | ||
p.text('hello', 10, 30); | ||
}; | ||
}; | ||
|
||
new p5(sketch); | ||
</script> | ||
new p5(sketch); | ||
</script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.