Skip to content

Commit 1585167

Browse files
committed
update refence docs for new signature
1 parent 47750ca commit 1585167

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

py5_docs/Reference/api_en/Py5Graphics_text.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ processing_name = text
99
@@ signatures
1010
text(c: chr, x: float, y: float, /) -> None
1111
text(c: chr, x: float, y: float, z: float, /) -> None
12-
text(chars: list[chr], start: int, stop: int, x: float, y: float, /) -> None
13-
text(chars: list[chr], start: int, stop: int, x: float, y: float, z: float, /) -> None
12+
text(chars: Iterator[chr], start: int, stop: int, x: float, y: float, /) -> None
13+
text(chars: Iterator[chr], start: int, stop: int, x: float, y: float, z: float, /) -> None
1414
text(num: float, x: float, y: float, /) -> None
1515
text(num: float, x: float, y: float, z: float, /) -> None
1616
text(num: int, x: float, y: float, /) -> None
@@ -21,7 +21,7 @@ text(str: str, x: float, y: float, z: float, /) -> None
2121

2222
@@ variables
2323
c: chr - the alphanumeric character to be displayed
24-
chars: list[chr] - the alphanumberic symbols to be displayed
24+
chars: Iterator[chr] - the alphanumberic symbols to be displayed
2525
num: float - the numeric value to be displayed
2626
num: int - the numeric value to be displayed
2727
start: int - array index at which to start writing characters

py5_docs/Reference/api_en/Py5Graphics_text_width.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ processing_name = textWidth
88

99
@@ signatures
1010
text_width(c: chr, /) -> float
11-
text_width(chars: list[chr], start: int, length: int, /) -> float
11+
text_width(chars: Iterator[chr], start: int, length: int, /) -> float
1212
text_width(str: str, /) -> float
1313

1414
@@ variables
1515
c: chr - the character to measure
16-
chars: list[chr] - the character to measure
16+
chars: Iterator[chr] - the characters to measure
1717
length: int - number of characters to measure
1818
start: int - first character to measure
1919
str: str - the String of characters to measure

py5_docs/Reference/api_en/Sketch_create_font.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ processing_name = createFont
99
@@ signatures
1010
create_font(name: str, size: float, /) -> Py5Font
1111
create_font(name: str, size: float, smooth: bool, /) -> Py5Font
12-
create_font(name: str, size: float, smooth: bool, charset: list[chr], /) -> Py5Font
12+
create_font(name: str, size: float, smooth: bool, charset: Iterator[chr], /) -> Py5Font
1313

1414
@@ variables
15-
charset: list[chr] - array containing characters to be generated
15+
charset: Iterator[chr] - characters to be generated
1616
name: str - name of the font to load
1717
size: float - point size of the font
1818
smooth: bool - true for an antialiased font, false for aliased

py5_docs/Reference/api_en/Sketch_text.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ processing_name = text
99
@@ signatures
1010
text(c: chr, x: float, y: float, /) -> None
1111
text(c: chr, x: float, y: float, z: float, /) -> None
12-
text(chars: list[chr], start: int, stop: int, x: float, y: float, /) -> None
13-
text(chars: list[chr], start: int, stop: int, x: float, y: float, z: float, /) -> None
12+
text(chars: Iterator[chr], start: int, stop: int, x: float, y: float, /) -> None
13+
text(chars: Iterator[chr], start: int, stop: int, x: float, y: float, z: float, /) -> None
1414
text(num: float, x: float, y: float, /) -> None
1515
text(num: float, x: float, y: float, z: float, /) -> None
1616
text(num: int, x: float, y: float, /) -> None
@@ -21,7 +21,7 @@ text(str: str, x: float, y: float, z: float, /) -> None
2121

2222
@@ variables
2323
c: chr - the alphanumeric character to be displayed
24-
chars: list[chr] - the alphanumberic symbols to be displayed
24+
chars: Iterator[chr] - the alphanumberic symbols to be displayed
2525
num: float - the numeric value to be displayed
2626
num: int - the numeric value to be displayed
2727
start: int - array index at which to start writing characters

py5_docs/Reference/api_en/Sketch_text_width.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ processing_name = textWidth
88

99
@@ signatures
1010
text_width(c: chr, /) -> float
11-
text_width(chars: list[chr], start: int, length: int, /) -> float
11+
text_width(chars: Iterator[chr], start: int, length: int, /) -> float
1212
text_width(str: str, /) -> float
1313

1414
@@ variables
1515
c: chr - the character to measure
16-
chars: list[chr] - the character to measure
16+
chars: Iterator[chr] - the characters to measure
1717
length: int - number of characters to measure
1818
start: int - first character to measure
1919
str: str - the String of characters to measure

0 commit comments

Comments
 (0)