diff --git a/src/strands/p5.strands.js b/src/strands/p5.strands.js index 9b58389174..4462f8dd9b 100644 --- a/src/strands/p5.strands.js +++ b/src/strands/p5.strands.js @@ -612,7 +612,18 @@ if (typeof p5 !== "undefined") { */ /** - * @property {Object} filterColor + * @typedef {Object} FilterColorHook + * @property {any} texCoord + * @property {any} canvasSize + * @property {any} texelSize + * @property {any} canvasContent + * @property {function(): undefined} begin + * @property {function(): undefined} end + * @property {function(color: any): void} set + */ + +/** + * @property {FilterColorHook} filterColor * @description * A shader hook block that sets the color for each pixel in a filter shader. This hook can be used inside `buildFilterShader()` to control the output color for each pixel. * diff --git a/utils/patch.mjs b/utils/patch.mjs index 446a6ef755..841ac9c703 100644 --- a/utils/patch.mjs +++ b/utils/patch.mjs @@ -175,4 +175,3 @@ export function applyPatches() { } } } -