From ff23d95d0c3976089026b7de76e4dfd3c1bc49af Mon Sep 17 00:00:00 2001 From: mian Date: Thu, 21 Jul 2022 10:24:19 +0300 Subject: [PATCH] initial --- README.txt | 66 + addons/p5.sound.js | 12268 ++++ addons/p5.sound.min.js | 3 + diag_spring/index.html | 24 + diag_spring/sketch.js | 33 + empty-example/index.html | 24 + empty-example/sketch.js | 7 + fractal_antenna/index.html | 24 + fractal_antenna/sketch.js | 38 + p5.js | 111165 ++++++++++++++++++++++++++++++++++ p5.min.js | 3 + particles/index.html | 25 + particles/sketch.js | 84 + pendulum/ball.js | 37 + pendulum/index.html | 25 + pendulum/sketch.js | 17 + sandpile/index.html | 24 + sandpile/sketch.js | 94 + sunflower-seeds/index.html | 24 + sunflower-seeds/sketch.js | 29 + tentacle/index.html | 25 + tentacle/segment.js | 43 + tentacle/sketch.js | 34 + 23 files changed, 124116 insertions(+) create mode 100644 README.txt create mode 100644 addons/p5.sound.js create mode 100644 addons/p5.sound.min.js create mode 100644 diag_spring/index.html create mode 100644 diag_spring/sketch.js create mode 100644 empty-example/index.html create mode 100644 empty-example/sketch.js create mode 100644 fractal_antenna/index.html create mode 100644 fractal_antenna/sketch.js create mode 100644 p5.js create mode 100644 p5.min.js create mode 100644 particles/index.html create mode 100644 particles/sketch.js create mode 100644 pendulum/ball.js create mode 100644 pendulum/index.html create mode 100644 pendulum/sketch.js create mode 100644 sandpile/index.html create mode 100644 sandpile/sketch.js create mode 100644 sunflower-seeds/index.html create mode 100644 sunflower-seeds/sketch.js create mode 100644 tentacle/index.html create mode 100644 tentacle/segment.js create mode 100644 tentacle/sketch.js diff --git a/README.txt b/README.txt new file mode 100644 index 0000000..6f0b7e3 --- /dev/null +++ b/README.txt @@ -0,0 +1,66 @@ +# Welcome to p5.js + +You have downloaded the complete p5.js library ZIP file, yay! + +# Contents of the p5 folder + +* p5.js file +* p5.min.js file +* addons folder + * p5.sound.js + * p5.sound.min.js +* empty-example folder + * index.html + * p5.js + * p5.sound.js + * sketch.js + +## p5.js + +This file stores the complete p5.js library. It is easy to read by humans, so feel free to open it and explore its contents. It also has a friendly error system, which helps new programmers with common user errors. + +## p5.min.js + +This file is a minified version of the p5.js file. It is a lighter version, with the same functionalities, but smaller file size. This minified version is harder to read for humans, and does not include the friendly error system. + +## addons folder + +The addons folder includes additional p5.js related libraries, in both original versions and minified versions. + +### p5.sound.js, p5.sound.min.js + +p5.sound extends p5.js with Web Audio functionality including audio input, playback, analysis, and synthesis. + +## empty-example folder + +This is an empty example of a website. The folder includes the file for the website, index.html, the p5.js library, other related p5.js libraries, and a template starting point for your p5.js sketch, called sketch.js. + +### index.html + +index.html is a template for an HTML file. This index.html first imports the libraries included in the folder (p5.js, p5.sound.js) then loads and executes the file sketch.js which is where you can write your own code. + +### sketch.js + +The sketch.js is a template for the p5.js sketch, with the functions setup() and draw() that you can complete. + +## README.txt + +This README file formatted with Markdown :) + +# What's next? + +If you need more information to help get you started, please refer to our website: +https://p5js.org/get-started/ and https://p5js.org/learn/ + +An online reference to the p5.js library is available here: +https://p5js.org/reference/ + +In order to run your website (including the empty-example), you need to enable a local server, please see this tutorial in our wiki: +https://github.com/processing/p5.js/wiki/Local-server + +p5.js is a community and p5.js is built by contributions. If you want to learn more about us, visit: +https://p5js.org/community/ + +# License + +The p5.js library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, version 2.1. diff --git a/addons/p5.sound.js b/addons/p5.sound.js new file mode 100644 index 0000000..ca19c19 --- /dev/null +++ b/addons/p5.sound.js @@ -0,0 +1,12268 @@ +/** [p5.sound] Version: 1.0.1 - 2021-05-25 */ + /** + *

p5.sound extends p5 with Web Audio functionality including audio input, + * playback, analysis and synthesis. + *

+ *