Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/core/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function modeAdjust(a, b, c, d, mode) {
if (mode === constants.CORNER) {

// CORNER mode already corresponds to a bounding box (top-left corner, width, height).
// For negative widhts or heights, the absolute value is used.
// For negative widths or heights, the absolute value is used.
bbox = {
x: a,
y: b,
Expand All @@ -26,7 +26,7 @@ function modeAdjust(a, b, c, d, mode) {
} else if (mode === constants.CORNERS) {

// CORNERS mode uses two opposite corners, in any configuration.
// Make sure to get the top left corner by using the minimum of the x and y coordniates.
// Make sure to get the top left corner by using the minimum of the x and y coordinates.
bbox = {
x: Math.min(a, c),
y: Math.min(b, d),
Expand Down
4 changes: 2 additions & 2 deletions src/webgl/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import { Texture } from "./p5.Texture";
* @param {Uint8Array|Float32Array|undefined} pixels An existing pixels array to reuse if the size is the same
* @param {WebGLRenderingContext} gl The WebGL context
* @param {WebGLFramebuffer|null} framebuffer The Framebuffer to read
* @param {Number} x The x coordiante to read, premultiplied by pixel density
* @param {Number} y The y coordiante to read, premultiplied by pixel density
* @param {Number} x The x coordinate to read, premultiplied by pixel density
* @param {Number} y The y coordinate to read, premultiplied by pixel density
* @param {Number} width The width in pixels to be read (factoring in pixel density)
* @param {Number} height The height in pixels to be read (factoring in pixel density)
* @param {GLEnum} format Either RGB or RGBA depending on how many channels to read
Expand Down
Loading