diff --git a/src/color/p5.Color.js b/src/color/p5.Color.js index ac733b0f39..dfcd07a744 100644 --- a/src/color/p5.Color.js +++ b/src/color/p5.Color.js @@ -571,7 +571,7 @@ p5.Color = class Color { /** * Sets the red component of a color. * - * The range depends on the colorMode(). In the + * The range depends on the colorMode(). In the * default RGB mode it's between 0 and 255. * * @method setRed @@ -613,7 +613,7 @@ p5.Color = class Color { /** * Sets the green component of a color. * - * The range depends on the colorMode(). In the + * The range depends on the colorMode(). In the * default RGB mode it's between 0 and 255. * * @method setGreen @@ -655,7 +655,7 @@ p5.Color = class Color { /** * Sets the blue component of a color. * - * The range depends on the colorMode(). In the + * The range depends on the colorMode(). In the * default RGB mode it's between 0 and 255. * * @method setBlue @@ -698,7 +698,7 @@ p5.Color = class Color { * Sets the alpha (transparency) value of a color. * * The range depends on the - * colorMode(). In the default RGB mode it's + * colorMode(). In the default RGB mode it's * between 0 and 255. * * @method setAlpha diff --git a/src/core/transform.js b/src/core/transform.js index e01ec1fc50..911d074d1a 100644 --- a/src/core/transform.js +++ b/src/core/transform.js @@ -266,7 +266,7 @@ p5.prototype.applyMatrix = function(...args) { * // Translate the origin to the center. * translate(50, 50); * - * // Draw a red circle at the coordinates (25, 25). + * // Draw a blue circle at the coordinates (25, 25). * fill('blue'); * circle(25, 25, 20); * @@ -274,7 +274,7 @@ p5.prototype.applyMatrix = function(...args) { * // The origin is now at the top-left corner. * resetMatrix(); * - * // Draw a blue circle at the coordinates (25, 25). + * // Draw a red circle at the coordinates (25, 25). * fill('red'); * circle(25, 25, 20); * } @@ -317,9 +317,8 @@ p5.prototype.resetMatrix = function() { * shapes to spin. * * @method rotate - * @param {Number} angle the angle of rotation, specified in radians - * or degrees, depending on current angleMode - * @param {p5.Vector|Number[]} [axis] (in 3d) the axis to rotate around + * @param {Number} angle angle of rotation in the current angleMode(). + * @param {p5.Vector|Number[]} [axis] axis to rotate about in 3D. * @chainable * * @example