From f66b500d1b37f782ce4e38bc405c03800a50b4ff Mon Sep 17 00:00:00 2001 From: "allcontributors[bot]" <46447321+allcontributors[bot]@users.noreply.github.com> Date: Sat, 9 Dec 2023 17:26:17 +0000 Subject: [PATCH 01/23] docs: update README.md [skip ci] --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 993fb077fc..56c28132c1 100644 --- a/README.md +++ b/README.md @@ -927,6 +927,7 @@ We recognize all types of contributions. This project follows the [all-contribut Vishwas Srivastava
Vishwas Srivastava

💻 + Umang Utkarsh
Umang Utkarsh

📖 From d4308f36929b56521b33cafb6410b2f5466b2aa8 Mon Sep 17 00:00:00 2001 From: "allcontributors[bot]" <46447321+allcontributors[bot]@users.noreply.github.com> Date: Sat, 9 Dec 2023 17:26:18 +0000 Subject: [PATCH 02/23] docs: update .all-contributorsrc [skip ci] --- .all-contributorsrc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.all-contributorsrc b/.all-contributorsrc index 4f15318e69..65e7799d06 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -5427,6 +5427,15 @@ "contributions": [ "code" ] + }, + { + "login": "umangutkarsh", + "name": "Umang Utkarsh", + "avatar_url": "https://avatars.githubusercontent.com/u/95426993?v=4", + "profile": "https://github.com/umangutkarsh", + "contributions": [ + "doc" + ] } ], "repoType": "github", From efbedb5972830990c49f312b124c8a8ab52f5f8f Mon Sep 17 00:00:00 2001 From: "allcontributors[bot]" <46447321+allcontributors[bot]@users.noreply.github.com> Date: Tue, 12 Dec 2023 16:56:26 +0000 Subject: [PATCH 03/23] docs: update README.md [skip ci] --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index d98d79ba54..c0d2e383f6 100644 --- a/README.md +++ b/README.md @@ -928,6 +928,7 @@ We recognize all types of contributions. This project follows the [all-contribut Vishwas Srivastava
Vishwas Srivastava

💻 suhani6904
suhani6904

🌍 + Nabeel (Dexter)
Nabeel (Dexter)

💻 From e26b3fbe4bb748e7c715e796adf8fdd67f642e95 Mon Sep 17 00:00:00 2001 From: "allcontributors[bot]" <46447321+allcontributors[bot]@users.noreply.github.com> Date: Tue, 12 Dec 2023 16:56:27 +0000 Subject: [PATCH 04/23] docs: update .all-contributorsrc [skip ci] --- .all-contributorsrc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.all-contributorsrc b/.all-contributorsrc index f2f8bb71c7..8ace098dde 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -5436,6 +5436,15 @@ "contributions": [ "translation" ] + }, + { + "login": "dexterco", + "name": "Nabeel (Dexter)", + "avatar_url": "https://avatars.githubusercontent.com/u/63152089?v=4", + "profile": "https://github.com/dexterco", + "contributions": [ + "code" + ] } ], "repoType": "github", From 9a62a2fb92ad57c333207bbb841e3fa52ad77f32 Mon Sep 17 00:00:00 2001 From: "allcontributors[bot]" <46447321+allcontributors[bot]@users.noreply.github.com> Date: Sat, 16 Dec 2023 08:10:01 +0000 Subject: [PATCH 05/23] docs: update README.md [skip ci] --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 56c28132c1..02beab7b4d 100644 --- a/README.md +++ b/README.md @@ -927,7 +927,7 @@ We recognize all types of contributions. This project follows the [all-contribut Vishwas Srivastava
Vishwas Srivastava

💻 - Umang Utkarsh
Umang Utkarsh

📖 + Umang Utkarsh
Umang Utkarsh

📖 🌍 From bd04c210816b4e45045e97f358c6ec0be52c2fcb Mon Sep 17 00:00:00 2001 From: "allcontributors[bot]" <46447321+allcontributors[bot]@users.noreply.github.com> Date: Sat, 16 Dec 2023 08:10:02 +0000 Subject: [PATCH 06/23] docs: update .all-contributorsrc [skip ci] --- .all-contributorsrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.all-contributorsrc b/.all-contributorsrc index 65e7799d06..cc4f6c73ae 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -5434,7 +5434,8 @@ "avatar_url": "https://avatars.githubusercontent.com/u/95426993?v=4", "profile": "https://github.com/umangutkarsh", "contributions": [ - "doc" + "doc", + "translation" ] } ], From 83fe452ca160236be72ec9fca87de9fc57e6f7b8 Mon Sep 17 00:00:00 2001 From: "allcontributors[bot]" <46447321+allcontributors[bot]@users.noreply.github.com> Date: Thu, 21 Dec 2023 19:21:49 +0000 Subject: [PATCH 07/23] docs: update README.md [skip ci] --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index d98d79ba54..4d0fa6294b 100644 --- a/README.md +++ b/README.md @@ -928,6 +928,7 @@ We recognize all types of contributions. This project follows the [all-contribut Vishwas Srivastava
Vishwas Srivastava

💻 suhani6904
suhani6904

🌍 + aditya123473892
aditya123473892

💻 🐛 📖 From 2a1da0497553afc86b13eee807340f6b7cddbe81 Mon Sep 17 00:00:00 2001 From: "allcontributors[bot]" <46447321+allcontributors[bot]@users.noreply.github.com> Date: Thu, 21 Dec 2023 19:21:50 +0000 Subject: [PATCH 08/23] docs: update .all-contributorsrc [skip ci] --- .all-contributorsrc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.all-contributorsrc b/.all-contributorsrc index f2f8bb71c7..710e7687cb 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -5436,6 +5436,17 @@ "contributions": [ "translation" ] + }, + { + "login": "aditya123473892", + "name": "aditya123473892", + "avatar_url": "https://avatars.githubusercontent.com/u/117269123?v=4", + "profile": "https://github.com/aditya123473892", + "contributions": [ + "code", + "bug", + "doc" + ] } ], "repoType": "github", From a9748c233cd8870ef616cd25f24c865786e41d0c Mon Sep 17 00:00:00 2001 From: "allcontributors[bot]" <46447321+allcontributors[bot]@users.noreply.github.com> Date: Fri, 22 Dec 2023 05:18:11 +0000 Subject: [PATCH 09/23] docs: update README.md [skip ci] --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index d98d79ba54..290ec8756a 100644 --- a/README.md +++ b/README.md @@ -928,6 +928,7 @@ We recognize all types of contributions. This project follows the [all-contribut Vishwas Srivastava
Vishwas Srivastava

💻 suhani6904
suhani6904

🌍 + Harsh Range
Harsh Range

💻 🐛 From db36646d6fe5c3048a893cb7021bc73047a91621 Mon Sep 17 00:00:00 2001 From: "allcontributors[bot]" <46447321+allcontributors[bot]@users.noreply.github.com> Date: Fri, 22 Dec 2023 05:18:12 +0000 Subject: [PATCH 10/23] docs: update .all-contributorsrc [skip ci] --- .all-contributorsrc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.all-contributorsrc b/.all-contributorsrc index f2f8bb71c7..22624fff69 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -5436,6 +5436,16 @@ "contributions": [ "translation" ] + }, + { + "login": "haarsh157", + "name": "Harsh Range", + "avatar_url": "https://avatars.githubusercontent.com/u/115213858?v=4", + "profile": "https://github.com/haarsh157", + "contributions": [ + "code", + "bug" + ] } ], "repoType": "github", From d2f97e86d74cdc33fe169ea00c5988d929c2697e Mon Sep 17 00:00:00 2001 From: RandomGamingDev Date: Mon, 25 Dec 2023 13:12:21 -0500 Subject: [PATCH 11/23] fixed the shader to make the instanced boxes separated from one another by changing *40 to *375 because of the camera changes --- src/core/shape/vertex.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/shape/vertex.js b/src/core/shape/vertex.js index b08d5830cf..c8b4e84a9f 100644 --- a/src/core/shape/vertex.js +++ b/src/core/shape/vertex.js @@ -647,8 +647,8 @@ p5.prototype.endContour = function() { * * // gl_InstanceID represents a numeric value for each instance * // using gl_InstanceID allows us to move each instance separately - * // here we move each instance horizontally by id * 40 - * float xOffset = float(gl_InstanceID) * 40.0; + * // here we move each instance horizontally by id * 375 + * float xOffset = float(gl_InstanceID) * 375.0; * * // apply the offset to the final position * gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4 - From c5ec34685bf8aa22a62a1cfe0fec6ae91f502eab Mon Sep 17 00:00:00 2001 From: RandomGamingDev Date: Mon, 25 Dec 2023 13:31:42 -0500 Subject: [PATCH 12/23] changed it so that it uses pixel transformations instead --- src/core/shape/vertex.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/shape/vertex.js b/src/core/shape/vertex.js index c8b4e84a9f..f0e1815632 100644 --- a/src/core/shape/vertex.js +++ b/src/core/shape/vertex.js @@ -647,12 +647,12 @@ p5.prototype.endContour = function() { * * // gl_InstanceID represents a numeric value for each instance * // using gl_InstanceID allows us to move each instance separately - * // here we move each instance horizontally by id * 375 - * float xOffset = float(gl_InstanceID) * 375.0; + * // here we move each instance horizontally by id * 23 + * float xOffset = float(gl_InstanceID) * 23.0; * * // apply the offset to the final position - * gl_Position = uProjectionMatrix * uModelViewMatrix * positionVec4 - - * vec4(xOffset, 0.0, 0.0, 0.0); + * gl_Position = uProjectionMatrix * uModelViewMatrix * (positionVec4 - + * vec4(xOffset, 0.0, 0.0, 0.0)); * } * `; * let fs = `#version 300 es From 6d88dc35b58c6f8f76922c3bfda62579a4349eac Mon Sep 17 00:00:00 2001 From: Diya Date: Tue, 26 Dec 2023 13:38:33 +0530 Subject: [PATCH 13/23] bugfix #6653 vertexNormal is not defined,replaces with normal --- src/webgl/p5.RendererGL.Immediate.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/webgl/p5.RendererGL.Immediate.js b/src/webgl/p5.RendererGL.Immediate.js index 2409dae3d6..673fe0521e 100644 --- a/src/webgl/p5.RendererGL.Immediate.js +++ b/src/webgl/p5.RendererGL.Immediate.js @@ -167,13 +167,14 @@ p5.RendererGL.prototype.vertex = function(x, y) { /** * Sets the normal to use for subsequent vertices. - * @method vertexNormal + * @private + * @method normal * @param {Number} x * @param {Number} y * @param {Number} z * @chainable * - * @method vertexNormal + * @method normal * @param {Vector} v * @chainable */ From 768160d076c16262a6090b436852a4a49b87c2c2 Mon Sep 17 00:00:00 2001 From: "allcontributors[bot]" <46447321+allcontributors[bot]@users.noreply.github.com> Date: Wed, 27 Dec 2023 18:47:14 +0000 Subject: [PATCH 14/23] docs: update README.md [skip ci] --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 165a59d5ee..d508aae667 100644 --- a/README.md +++ b/README.md @@ -933,6 +933,9 @@ We recognize all types of contributions. This project follows the [all-contribut aditya123473892
aditya123473892

💻 🐛 📖 Harsh Range
Harsh Range

💻 🐛 + + Sudhanshu Tiwari
Sudhanshu Tiwari

💻 + From 77eb3ff886b267ef55cbadbcafa6ce2b69b9a9e1 Mon Sep 17 00:00:00 2001 From: "allcontributors[bot]" <46447321+allcontributors[bot]@users.noreply.github.com> Date: Wed, 27 Dec 2023 18:47:15 +0000 Subject: [PATCH 15/23] docs: update .all-contributorsrc [skip ci] --- .all-contributorsrc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.all-contributorsrc b/.all-contributorsrc index b5e0e5ce42..5dc4f74288 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -5476,6 +5476,15 @@ "code", "bug" ] + }, + { + "login": "sudhanshuv1", + "name": "Sudhanshu Tiwari", + "avatar_url": "https://avatars.githubusercontent.com/u/148856416?v=4", + "profile": "https://github.com/sudhanshuv1", + "contributions": [ + "code" + ] } ], "repoType": "github", From 5d064c6fa26159930df0aaf74fb01ca79c73f216 Mon Sep 17 00:00:00 2001 From: Garima <110815240+Garima3110@users.noreply.github.com> Date: Fri, 29 Dec 2023 17:10:02 +0530 Subject: [PATCH 16/23] Updated docs for p5.Shader.js --- src/webgl/p5.Shader.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webgl/p5.Shader.js b/src/webgl/p5.Shader.js index 0366df75e4..3bb6c63a1a 100644 --- a/src/webgl/p5.Shader.js +++ b/src/webgl/p5.Shader.js @@ -215,7 +215,7 @@ p5.Shader = class { ); uniform.size = uniformInfo.size; let uniformName = uniformInfo.name; - //uniforms thats are arrays have their name returned as + //uniforms that are arrays have their name returned as //someUniform[0] which is a bit silly so we trim it //off here. The size property tells us that its an array //so we dont lose any information by doing this @@ -382,7 +382,7 @@ p5.Shader = class { * @param {String} uniformName the name of the uniform. * Must correspond to the name used in the vertex and fragment shaders * @param {Boolean|Number|Number[]|p5.Image|p5.Graphics|p5.MediaElement|p5.Texture} - * data the data to associate with the uniform. The type can be + * data The value to assign to the uniform. This can be * a boolean (true/false), a number, an array of numbers, or * an image (p5.Image, p5.Graphics, p5.MediaElement, p5.Texture) * From 0e7ba5328eee830f3993e509e16a8d355113a071 Mon Sep 17 00:00:00 2001 From: Asuka Minato Date: Mon, 1 Jan 2024 06:29:15 +0900 Subject: [PATCH 17/23] add missing return type --- src/core/p5.Graphics.js | 1 + src/core/rendering.js | 1 + 2 files changed, 2 insertions(+) diff --git a/src/core/p5.Graphics.js b/src/core/p5.Graphics.js index 2de8fe011b..9fa18e6090 100644 --- a/src/core/p5.Graphics.js +++ b/src/core/p5.Graphics.js @@ -204,6 +204,7 @@ p5.Graphics = class extends p5.Element { * createFramebuffer function. * * @method createFramebuffer + * @return {p5.Framebuffer} */ createFramebuffer(options) { return new p5.Framebuffer(this, options); diff --git a/src/core/rendering.js b/src/core/rendering.js index 6d5aa5804a..a2918217cc 100644 --- a/src/core/rendering.js +++ b/src/core/rendering.js @@ -322,6 +322,7 @@ p5.prototype.createGraphics = function(w, h, renderer, canvas) { * * @method createFramebuffer * @param {Object} [options] An optional object with configuration + * @return {p5.Framebuffer} * * @example *
From 33082af718c4c8007e04eca8427ca01195075e2c Mon Sep 17 00:00:00 2001 From: Rahul Date: Mon, 1 Jan 2024 19:54:04 +0530 Subject: [PATCH 18/23] fixed the doubleClicked() in offline docs --- docs/yuidoc-p5-theme/assets/js/render.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/yuidoc-p5-theme/assets/js/render.js b/docs/yuidoc-p5-theme/assets/js/render.js index 8af9c9f8d5..aaac07bbb6 100644 --- a/docs/yuidoc-p5-theme/assets/js/render.js +++ b/docs/yuidoc-p5-theme/assets/js/render.js @@ -194,7 +194,7 @@ var renderCode = function(exampleName) { var s = function( p ) { var fxns = ['setup', 'draw', 'preload', 'mousePressed', 'mouseReleased', - 'mouseMoved', 'mouseDragged', 'mouseClicked', 'mouseWheel', + 'mouseMoved', 'mouseDragged', 'mouseClicked','doubleClicked','mouseWheel', 'touchStarted', 'touchMoved', 'touchEnded', 'keyPressed', 'keyReleased', 'keyTyped']; var _found = []; From 00f516a2ab8891cb74c0c7f9c7f28da05de401c3 Mon Sep 17 00:00:00 2001 From: Rohit Paul <113459757+RohitPaul0007@users.noreply.github.com> Date: Tue, 2 Jan 2024 16:09:35 +0530 Subject: [PATCH 19/23] Update contributor_guidelines.md --- contributor_docs/contributor_guidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contributor_docs/contributor_guidelines.md b/contributor_docs/contributor_guidelines.md index a51f93103a..4f24c4ca27 100644 --- a/contributor_docs/contributor_guidelines.md +++ b/contributor_docs/contributor_guidelines.md @@ -208,7 +208,7 @@ Once the push is complete, you may see a link in the terminal that lets you open ### Pull request information Before filing the pull request, you will need to fill out the pull request template. First of all the pull request title should briefly describe what the changes are, again avoid generic statements here. -Next, in the template, there is this line `Resolves #[Add issue number here]` which you should replace `[Add issue number here]` with the issue number of the issue you are addressing/fixing [above](#all-about-issues) (eg. `Resolves #1234`). This will make sure the issue is automatically closed after this PR is merged. If you do not wish to automatically close the issue after this PR is merged (maybe because there are more changes coming in a separate PR), change `Resovles` to `Addresses`. +Next, in the template, there is this line `Resolves #[Add issue number here]` which you should replace `[Add issue number here]` with the issue number of the issue you are addressing/fixing [above](#all-about-issues) (eg. `Resolves #1234`). This will make sure the issue is automatically closed after this PR is merged. If you do not wish to automatically close the issue after this PR is merged (maybe because there are more changes coming in a separate PR), change `Resolves` to `Addresses`. For "Changes", you should give a clear description of the changes you have made in this PR. Include any implementation details and decisions you made here that are relevant to whoever will review this PR. From 117464fd05f7aedd23419b8976944734969c0a4a Mon Sep 17 00:00:00 2001 From: Asuka Minato Date: Wed, 3 Jan 2024 02:12:47 +0900 Subject: [PATCH 20/23] make parms optional --- src/color/setting.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/color/setting.js b/src/color/setting.js index 0dc35c6283..457e686dd0 100644 --- a/src/color/setting.js +++ b/src/color/setting.js @@ -441,10 +441,10 @@ p5.prototype.background = function(...args) { * *
* - * @param {Number} r normalized red value. - * @param {Number} g normalized green value. - * @param {Number} b normalized blue value. - * @param {Number} a normalized alpha value. + * @param {Number} [r] normalized red value. + * @param {Number} [g] normalized green value. + * @param {Number} [b] normalized blue value. + * @param {Number} [a] normalized alpha value. */ p5.prototype.clear = function(...args) { const _r = args[0] || 0; From 77574af390fd2fe4d30b29974dbf27ef8ed1fff1 Mon Sep 17 00:00:00 2001 From: Sudhanshu Tiwari Date: Fri, 5 Jan 2024 10:12:55 +0530 Subject: [PATCH 21/23] fixed second example in the reference page for acos() --- src/math/trigonometry.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/math/trigonometry.js b/src/math/trigonometry.js index c22f0e4d80..8ee055030c 100644 --- a/src/math/trigonometry.js +++ b/src/math/trigonometry.js @@ -42,14 +42,14 @@ p5.prototype._angleMode = constants.RADIANS; * *
* - * let a = PI; + * let a = PI-QUARTER_PI; * let c = cos(a); * let ac = acos(c); * text(`${round(a, 3)}`, 35, 25); * text(`${round(c, 3)}`, 35, 50); * text(`${round(ac, 3)}`, 35, 75); * - * describe('The numbers 3.927, -0.707, and 2.356 written on separate rows.'); + * describe('The numbers 2.356, -0.707, and 2.356 written on separate rows.'); * *
*/ From 814509d73e8d28d858a83fc4f2390c8d3adb84f2 Mon Sep 17 00:00:00 2001 From: clemzio Date: Sat, 6 Jan 2024 11:02:53 +0100 Subject: [PATCH 22/23] fix documentation typo in src/math/random.js Fix minor documentation typo in `src/math/random.js`. --- src/math/random.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/math/random.js b/src/math/random.js index 4b9d519203..5a5ef7de60 100644 --- a/src/math/random.js +++ b/src/math/random.js @@ -108,7 +108,7 @@ p5.prototype.randomSeed = function(seed) { * strokeWeight(5); * point(x, y); * - * describe('A black dot appears in a random posiiton on a gray square.'); + * describe('A black dot appears in a random position on a gray square.'); * * * From dc814dca948234fb11591e03f54755510d82e5a9 Mon Sep 17 00:00:00 2001 From: Sudhanshu Tiwari Date: Sat, 6 Jan 2024 22:23:03 +0530 Subject: [PATCH 23/23] made the requested changes in previous commit --- src/math/trigonometry.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/math/trigonometry.js b/src/math/trigonometry.js index 8ee055030c..303cdeba92 100644 --- a/src/math/trigonometry.js +++ b/src/math/trigonometry.js @@ -42,14 +42,14 @@ p5.prototype._angleMode = constants.RADIANS; * *
* - * let a = PI-QUARTER_PI; + * let a = PI + QUARTER_PI; * let c = cos(a); * let ac = acos(c); * text(`${round(a, 3)}`, 35, 25); * text(`${round(c, 3)}`, 35, 50); * text(`${round(ac, 3)}`, 35, 75); * - * describe('The numbers 2.356, -0.707, and 2.356 written on separate rows.'); + * describe('The numbers 3.927, -0.707, and 2.356 written on separate rows.'); * *
*/