@@ -7,15 +7,15 @@ pclass = PShader
7
7
processing_name = set
8
8
9
9
@@ signatures
10
- set(name: str, boolvec: JArray(JBoolean) , ncoords: int, /) -> None
10
+ set(name: str, boolvec: Iterator[bool] , ncoords: int, /) -> None
11
11
set(name: str, mat: npt.NDArray[np.floating], /) -> None
12
12
set(name: str, mat: npt.NDArray[np.floating], use3x3: bool, /) -> None
13
13
set(name: str, tex: Py5Image, /) -> None
14
+ set(name: str, vec: Iterator[bool], /) -> None
14
15
set(name: str, vec: Iterator[float], /) -> None
15
16
set(name: str, vec: Iterator[float], ncoords: int, /) -> None
16
17
set(name: str, vec: Iterator[int], /) -> None
17
18
set(name: str, vec: Iterator[int], ncoords: int, /) -> None
18
- set(name: str, vec: JArray(JBoolean), /) -> None
19
19
set(name: str, vec: Py5Vector, /) -> None
20
20
set(name: str, x: bool, /) -> None
21
21
set(name: str, x: bool, y: bool, /) -> None
@@ -31,15 +31,15 @@ set(name: str, x: int, y: int, z: int, /) -> None
31
31
set(name: str, x: int, y: int, z: int, w: int, /) -> None
32
32
33
33
@@ variables
34
- boolvec: JArray(JBoolean) - modifies all the components of an array/vector uniform variable
34
+ boolvec: Iterator[bool] - modifies all the components of an array/vector uniform variable
35
35
mat: npt.NDArray[np.floating] - 2D numpy array of values with shape 2x3 for 2D matrices or 4x4 for 3D matrices
36
36
name: str - the name of the uniform variable to modify
37
37
ncoords: int - number of coordinates per element, max 4
38
38
tex: Py5Image - sets the sampler uniform variable to read from this image texture
39
39
use3x3: bool - enforces the numpy array is 3 x 3
40
+ vec: Iterator[bool] - modifies all the components of an array/vector uniform variable
40
41
vec: Iterator[float] - 1D numpy array of values to modify all the components of an array/vector uniform variable
41
42
vec: Iterator[int] - 1D numpy array of values to modify all the components of an array/vector uniform variable
42
- vec: JArray(JBoolean) - modifies all the components of an array/vector uniform variable
43
43
vec: Py5Vector - vector of values to modify all the components of an array/vector uniform variable
44
44
w: bool - fourth component of the variable to modify. The variable has to be declared with an array/vector type in the shader (i.e.: int[4], vec4)
45
45
w: float - fourth component of the variable to modify. The variable has to be declared with an array/vector type in the shader (i.e.: int[4], vec4)
0 commit comments