From 28a7825bf8b307d91b36d1ec428aa26e2e309701 Mon Sep 17 00:00:00 2001 From: omahs <73983677+omahs@users.noreply.github.com> Date: Sun, 1 Jun 2025 10:42:56 +0200 Subject: [PATCH] Fix typos --- contributor_docs/project_wrapups/DIVYANSHU_RAJ_GSOC_20.md | 2 +- contributor_docs/project_wrapups/munusshih_gsoc_2023.md | 2 +- lib/addons/p5.sound.js | 6 +++--- src/accessibility/outputs.js | 2 +- src/core/friendly_errors/sketch_reader.js | 2 +- src/webgl/shaders/lighting.glsl | 2 +- tasks/build/browserify.js | 2 +- tasks/build/combineModules.js | 2 +- test/unit/core/environment.js | 2 +- test/unit/core/error_helpers.js | 2 +- test/unit/core/rendering.js | 4 ++-- 11 files changed, 14 insertions(+), 14 deletions(-) diff --git a/contributor_docs/project_wrapups/DIVYANSHU_RAJ_GSOC_20.md b/contributor_docs/project_wrapups/DIVYANSHU_RAJ_GSOC_20.md index d4117393fd..41c377675e 100644 --- a/contributor_docs/project_wrapups/DIVYANSHU_RAJ_GSOC_20.md +++ b/contributor_docs/project_wrapups/DIVYANSHU_RAJ_GSOC_20.md @@ -53,7 +53,7 @@ The introduction of es6 classes into the JS world , was a great relief for devel when it comes to AUDIO GRAPHS , where one node is connected to so many other nodes and inherit property from its parent nodes , a more robust and cleaner implementation of Nodes was required and ES6 classes rocked the way . -Following PR REVAMPED the p5.sound's AUDIO NODES from ``funtion syntax`` to ``ES6 classes syntax`` +Following PR REVAMPED the p5.sound's AUDIO NODES from ``function syntax`` to ``ES6 classes syntax`` [#502](https://github.com/processing/p5.js-sound/pull/502) [#503](https://github.com/processing/p5.js-sound/pull/503) diff --git a/contributor_docs/project_wrapups/munusshih_gsoc_2023.md b/contributor_docs/project_wrapups/munusshih_gsoc_2023.md index 238f673deb..8a2712b32e 100644 --- a/contributor_docs/project_wrapups/munusshih_gsoc_2023.md +++ b/contributor_docs/project_wrapups/munusshih_gsoc_2023.md @@ -69,7 +69,7 @@ In conclusion, I am grateful for my time working with p5.js typography during GS ## Features Requested ```jsx -If they're not dependent/relevant, we should do seperate PRs. +If they're not dependent/relevant, we should do separate PRs. ``` | Topic | Status | Coded? | PR? | Pushed? | diff --git a/lib/addons/p5.sound.js b/lib/addons/p5.sound.js index a8a7e3f450..f7216fca04 100644 --- a/lib/addons/p5.sound.js +++ b/lib/addons/p5.sound.js @@ -8308,7 +8308,7 @@ function reverb_setPrototypeOf(o, p) { reverb_setPrototypeOf = Object.setPrototy /** * Reverb adds depth to a sound through a large number of decaying * echoes. It creates the perception that sound is occurring in a - * physical space. The p5.Reverb has paramters for Time (how long does the + * physical space. The p5.Reverb has parameters for Time (how long does the * reverb last) and decayRate (how much the sound decays with each echo) * that can be set with the .set() or .process() methods. The p5.Convolver * extends p5.Reverb allowing you to recreate the sound of actual physical @@ -9727,7 +9727,7 @@ function () { soundLoop_classCallCheck(this, SoundLoop); /** - * Getters and Setters, setting any paramter will result in a change in the clock's + * Getters and Setters, setting any parameter will result in a change in the clock's * frequency, that will be reflected after the next callback * beats per minute (defaults to 60) * @property {Number} bpm @@ -10110,7 +10110,7 @@ function (_Effect) { this.set(attack, knee, ratio, threshold, release); } /** - * Set the paramters of a compressor. + * Set the parameters of a compressor. * @method set * @for p5.Compressor * @param {Number} attack The amount of time (in seconds) to reduce the gain by 10dB, diff --git a/src/accessibility/outputs.js b/src/accessibility/outputs.js index 1680f18e31..d712c008bc 100644 --- a/src/accessibility/outputs.js +++ b/src/accessibility/outputs.js @@ -461,7 +461,7 @@ p5.prototype._accsOutput = function(f, args) { if (f === 'line') { //make color stroke include.color = this.ingredients.colors.stroke; - //get lenght + //get length include.length = Math.round(this.dist(args[0], args[1], args[2], args[3])); //get position of end points let p1 = this._getPos(args[0], [1]); diff --git a/src/core/friendly_errors/sketch_reader.js b/src/core/friendly_errors/sketch_reader.js index 01e0076edc..b70e86bf96 100644 --- a/src/core/friendly_errors/sketch_reader.js +++ b/src/core/friendly_errors/sketch_reader.js @@ -202,7 +202,7 @@ if (typeof IS_MINIFIED !== 'undefined') { /** * Converts code written by the user to an array - * every element of which is a seperate line of code. + * every element of which is a separate line of code. * * @method codeToLines * @private diff --git a/src/webgl/shaders/lighting.glsl b/src/webgl/shaders/lighting.glsl index b66ac083d1..4110fcf2a4 100644 --- a/src/webgl/shaders/lighting.glsl +++ b/src/webgl/shaders/lighting.glsl @@ -108,7 +108,7 @@ vec2 mapTextureToNormal( vec3 v ){ vec3 calculateImageDiffuse(vec3 vNormal, vec3 vViewPosition, float metallic){ - // make 2 seperate builds + // make 2 separate builds vec3 worldCameraPosition = vec3(0.0, 0.0, 0.0); // hardcoded world camera position vec3 worldNormal = normalize(vNormal * uCameraRotation); vec2 newTexCoor = mapTextureToNormal( worldNormal ); diff --git a/tasks/build/browserify.js b/tasks/build/browserify.js index 2d3fa59245..0af45c985a 100644 --- a/tasks/build/browserify.js +++ b/tasks/build/browserify.js @@ -37,7 +37,7 @@ module.exports = function(grunt) { if (isDev) { globalVars['P5_DEV_BUILD'] = () => true; } - // Invoke Browserify programatically to bundle the code + // Invoke Browserify programmatically to bundle the code let browserified = browserify(srcFilePath, { standalone: 'p5', insertGlobalVars: globalVars diff --git a/tasks/build/combineModules.js b/tasks/build/combineModules.js index 17db3f898b..6fb699a66c 100644 --- a/tasks/build/combineModules.js +++ b/tasks/build/combineModules.js @@ -52,7 +52,7 @@ module.exports = function(grunt) { // Target file path const libFilePath = path.resolve('lib/modules/' + filename); - // Invoke Browserify programatically to bundle the code + // Invoke Browserify programmatically to bundle the code let browseified = browserify(tempFilePath, { standalone: 'p5' }); diff --git a/test/unit/core/environment.js b/test/unit/core/environment.js index 4ab600a0e9..ed40189581 100644 --- a/test/unit/core/environment.js +++ b/test/unit/core/environment.js @@ -41,7 +41,7 @@ suite('Environment', function() { frames += 1; assert.equal(myp5.frameCount, frames); if (frames === start + 5) { - // Test 5 seperate redraws + // Test 5 separate redraws myp5.noLoop(); setTimeout(myp5.redraw.bind(myp5), 10); setTimeout(myp5.redraw.bind(myp5), 20); diff --git a/test/unit/core/error_helpers.js b/test/unit/core/error_helpers.js index 75ad06e31f..50f5d2bd55 100644 --- a/test/unit/core/error_helpers.js +++ b/test/unit/core/error_helpers.js @@ -522,7 +522,7 @@ suite('Error Helpers', function() { }); }); -// seperating in another suite because these don't need to initialize myp5 +// separating in another suite because these don't need to initialize myp5 // for each test. Instead they initialize p5 in the iframe. These tests are // also slower than the above ones. suite('Global Error Handling', function() { diff --git a/test/unit/core/rendering.js b/test/unit/core/rendering.js index 2f917a2ace..8e932761ed 100644 --- a/test/unit/core/rendering.js +++ b/test/unit/core/rendering.js @@ -174,14 +174,14 @@ suite('Rendering', function() { webglMethod + '() should throw a WEBGL assertion Error', (function(webglMethod) { return function() { - var validateParamters = myp5.validateParameters; + var validateParameters = myp5.validateParameters; myp5.validateParameters = false; try { expect(function() { myp5[webglMethod].call(myp5); }).to.throw(Error, /is only supported in WEBGL mode/); } finally { - myp5.validateParameters = validateParamters; + myp5.validateParameters = validateParameters; } }; })(webglMethod)