p5.js-website
p5.js-website copied to clipboard
Trigonometry example
Fixes #[Add issue number here]
Changes:
I added an example. I saw that none of the trigonometry examples used tan() and the shapes created with the sin wave were quite simple. I thought it could be an interesting example to make people more interested in trigonometry,
Screenshots of the change:
I added a new example in the math folder under the name 22. trigonometry and particle
I changed the issue description part. I hope it answer what you asked.
@Lucie-Maya As @3ru mentioned, can you revert the changes made to the following files:
-
package-lock.json
-
src/assets/js/reference.js
-
src/data/examples/build_examples/package-lock.json
-
src/data/examples/build_examples/package.json
as they are not relevant to the issue. Also there are some formatting inconsistencies in the example js file (inconsistent indents etc), can you have a look at those and fix them as well? Using a linter on your code editor can help with this as well (the repo has eslint rules setup already so if you install a linter on your code editor it should highlight the problems for you).
Let me know if you are not sure how to fix any of the above and I can walk you through in more detail.
Just want to note that the listed files still need to be reverted in this PR, there should be no changes to those files. You can check the "Files changed" tab on this page to see if they are still marked as changed.