@@ -1535,18 +1535,18 @@ function material(p5, fn){
15351535 * </td><td>
15361536 *
15371537 * Output the final color for the current pixel. It takes in two parameters:
1538- * `FilterInputs inputs`, and `in sampler2D content `, and must return a color
1538+ * `FilterInputs inputs`, and `in sampler2D canvasContent `, and must return a color
15391539 * as a `vec4`.
15401540 *
15411541 * `FilterInputs inputs` is a scruct with the following properties:
15421542 * - `vec2 texCoord`, the position on the canvas, with coordinates between 0 and 1. Calling
1543- * `getTexture(content , texCoord)` returns the original color of the current pixel.
1543+ * `getTexture(canvasContent , texCoord)` returns the original color of the current pixel.
15441544 * - `vec2 canvasSize`, the width and height of the sketch.
15451545 * - `vec2 texelSize`, the size of one real pixel relative to the size of the whole canvas.
15461546 * This is equivalent to `1 / (canvasSize * pixelDensity)`.
15471547 *
1548- * `in sampler2D content ` is a texture with the contents of the sketch, pre-filter. Call
1549- * `getTexture(content , someCoordinate)` to retrieve the color of the sketch at that coordinate,
1548+ * `in sampler2D canvasContent ` is a texture with the contents of the sketch, pre-filter. Call
1549+ * `getTexture(canvasContent , someCoordinate)` to retrieve the color of the sketch at that coordinate,
15501550 * with coordinate values between 0 and 1.
15511551 *
15521552 * </td></tr>
@@ -1574,11 +1574,11 @@ function material(p5, fn){
15741574 * },
15751575 * 'vec4 getColor': `(
15761576 * FilterInputs inputs,
1577- * in sampler2D content
1577+ * in sampler2D canvasContent
15781578 * ) {
15791579 * inputs.texCoord.y +=
15801580 * 0.01 * sin(time * 0.001 + inputs.position.x * 5.0);
1581- * return getTexture(content , inputs.texCoord);
1581+ * return getTexture(canvasContent , inputs.texCoord);
15821582 * }`
15831583 * });
15841584 * }
0 commit comments