Skip to content

Commit 8678c50

Browse files
committed
added texCoord property in finalColorHook
1 parent 8c85ab0 commit 8678c50

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/strands/p5.strands.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -725,6 +725,7 @@ if (typeof p5 !== "undefined") {
725725
/**
726726
* @typedef {Object} FinalColorHook
727727
* @property {any} color
728+
* @property {any} texCoord
728729
* @property {function(): undefined} begin
729730
* @property {function(): undefined} end
730731
* @property {function(color: any): void} set
@@ -738,6 +739,7 @@ if (typeof p5 !== "undefined") {
738739
*
739740
* `finalColor` has the following properties:
740741
* - `color`: a four-component vector representing the pixel color (red, green, blue, alpha).
742+
* - `texCoord`: a two-component vector representing the texture coordinates (u, v)
741743
*
742744
* Call `.set()` on the hook with a vector with four components (red, green, blue, alpha) to update the final color.
743745
*

0 commit comments

Comments
 (0)