p5.js-website icon indicating copy to clipboard operation
p5.js-website copied to clipboard

Trigonometry example

Open Lucie-Brosson opened this issue 2 years ago • 3 comments

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

Lucie-Brosson avatar Jun 05 '22 21:06 Lucie-Brosson

I changed the issue description part. I hope it answer what you asked.

Lucie-Brosson avatar Jun 07 '22 13:06 Lucie-Brosson

@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.

limzykenneth avatar Jun 07 '22 15:06 limzykenneth

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.

limzykenneth avatar Jun 17 '22 10:06 limzykenneth