|
25 | 25 | settings=[0],
|
26 | 26 | setup=[0],
|
27 | 27 | draw=[0],
|
| 28 | + predraw_update=[0], |
28 | 29 | pre_draw=[0],
|
29 | 30 | post_draw=[0],
|
30 | 31 | key_pressed=[0, 1],
|
|
246 | 247 | (('Sketch', 'save_bytes'), ['(bytes_data: Union[bytes, bytearray], filename: Union[str, Path]) -> None']),
|
247 | 248 | (('Sketch', 'load_pickle'), ['(pickle_path: Union[str, Path]) -> Any']),
|
248 | 249 | (('Sketch', 'save_pickle'), ['(obj: Any, filename: Union[str, Path]) -> None']),
|
| 250 | + (('Sketch', 'set_println_stream'), ['(println_stream: Any) -> None']), |
| 251 | + (('Sketch', 'println'), ['(*args, sep: str = " ", end: str = "\\n", stderr: bool = False) -> None']), |
| 252 | + (('Sketch', 'launch_thread'), ['(f: Callable, name: str = None, *, daemon: bool = True, args: tuple = None, kwargs: dict = None, ) -> str']), |
| 253 | + (('Sketch', 'launch_promise_thread'), ['(f: Callable, name: str = None, *, daemon: bool = True, args: tuple = None, kwargs: dict = None, ) -> Py5Promise']), |
| 254 | + (('Sketch', 'launch_repeating_thread'), ['(f: Callable, name: str = None, *, time_delay: float = 0, daemon: bool = True, args: tuple = None, kwargs: dict = None, ) -> str']), |
| 255 | + (('Sketch', 'has_thread'), ['(name: str) -> None']), |
| 256 | + (('Sketch', 'join_thread'), ['(name: str, *, timeout: float = None) -> bool']), |
| 257 | + (('Sketch', 'stop_thread'), ['(name: str, wait: bool = False) -> None']), |
| 258 | + (('Sketch', 'stop_all_threads'), ['(wait: bool = False) -> None']), |
| 259 | + (('Sketch', 'list_threads'), ['() -> None']), |
249 | 260 | (('Sketch', 'load_np_pixels'), ['() -> None']),
|
250 | 261 | (('Sketch', 'update_np_pixels'), ['() -> None']),
|
251 | 262 | (('Sketch', 'set_np_pixels'), ['(array: npt.NDArray[np.uint8], bands: str = "ARGB") -> None']),
|
252 | 263 | (('Sketch', 'get_np_pixels'), ['(*, bands: str = "ARGB", dst: npt.NDArray[np.uint8] = None) -> npt.NDArray[np.uint8]', '(x: int, y: int, w: int, h: int, /, *, bands: str = "ARGB", dst: npt.NDArray[np.uint8] = None, ) -> npt.NDArray[np.uint8]']),
|
253 | 264 | (('Sketch', 'to_pil'), ['() -> PIL_Image', '(x: int, y: int, w: int, h: int, /) -> PIL_Image']),
|
254 | 265 | (('Sketch', 'save'), ['(filename: Union[str, Path, BytesIO], *, format: str = None, drop_alpha: bool = True, use_thread: bool = False, **params, ) -> None']),
|
255 |
| - (('Sketch', 'set_println_stream'), ['(println_stream: Any) -> None']), |
256 |
| - (('Sketch', 'println'), ['(*args, sep: str = " ", end: str = "\\n", stderr: bool = False) -> None']), |
257 | 266 | (('Sketch', 'hex_color'), ['(color: int) -> str']),
|
258 | 267 | (('Sketch', 'sin'), ['(angle: Union[float, npt.ArrayLike]) -> Union[float, npt.NDArray]']),
|
259 | 268 | (('Sketch', 'cos'), ['(angle: Union[float, npt.ArrayLike]) -> Union[float, npt.NDArray]']),
|
|
284 | 293 | (('Sketch', 'random_gaussian'), ['() -> float', '(loc: float, /) -> float', '(loc: float, scale: float, /) -> float']),
|
285 | 294 | (('Sketch', 'noise'), ['(x: Union[float, npt.NDArray], /) -> Union[float, npt.NDArray]', '(x: Union[float, npt.NDArray], y: Union[float, npt.NDArray], /) -> Union[float, npt.NDArray]', '(x: Union[float, npt.NDArray], y: Union[float, npt.NDArray], z: Union[float, npt.NDArray], /, ) -> Union[float, npt.NDArray]']),
|
286 | 295 | (('Sketch', 'os_noise'), ['(x: Union[float, npt.NDArray], y: Union[float, npt.NDArray], /) -> Union[float, npt.NDArray]', '(x: Union[float, npt.NDArray], y: Union[float, npt.NDArray], z: Union[float, npt.NDArray], /, ) -> Union[float, npt.NDArray]', '(x: Union[float, npt.NDArray], y: Union[float, npt.NDArray], z: Union[float, npt.NDArray], w: Union[float, npt.NDArray], /, ) -> Union[float, npt.NDArray]']),
|
287 |
| - (('Sketch', 'launch_thread'), ['(f: Callable, name: str = None, *, daemon: bool = True, args: tuple = None, kwargs: dict = None, ) -> str']), |
288 |
| - (('Sketch', 'launch_promise_thread'), ['(f: Callable, name: str = None, *, daemon: bool = True, args: tuple = None, kwargs: dict = None, ) -> Py5Promise']), |
289 |
| - (('Sketch', 'launch_repeating_thread'), ['(f: Callable, name: str = None, *, time_delay: float = 0, daemon: bool = True, args: tuple = None, kwargs: dict = None, ) -> str']), |
290 |
| - (('Sketch', 'has_thread'), ['(name: str) -> None']), |
291 |
| - (('Sketch', 'join_thread'), ['(name: str, *, timeout: float = None) -> bool']), |
292 |
| - (('Sketch', 'stop_thread'), ['(name: str, wait: bool = False) -> None']), |
293 |
| - (('Sketch', 'stop_all_threads'), ['(wait: bool = False) -> None']), |
294 |
| - (('Sketch', 'list_threads'), ['() -> None']), |
295 | 296 | (('Sketch', 'sketch_path'), ['() -> Path', '(where: str, /) -> Path']),
|
296 | 297 | (('Sketch', 'hot_reload_draw'), ['(draw: Callable) -> None']),
|
297 | 298 | (('Sketch', 'profile_functions'), ['(function_names: list[str]) -> None']),
|
|
609 | 610 | (('Py5Vector', 'normalize'), ['() -> Py5Vector']),
|
610 | 611 | (('Py5Vector', 'set_limit'), ['(max_mag: float) -> Py5Vector']),
|
611 | 612 | (('Py5Vector', 'set_heading'), ['(*heading) -> Py5Vector']),
|
612 |
| - (('Py5Vector', 'from_heading'), ['(*heading, dtype: int = np.float_) -> Py5Vector']), |
613 |
| - (('Py5Vector', 'random'), ['(dim: int, *, dtype: type = np.float_) -> Py5Vector']), |
| 613 | + (('Py5Vector', 'from_heading'), ['(*heading, dtype: int = np.float64) -> Py5Vector']), |
| 614 | + (('Py5Vector', 'random'), ['(dim: int, *, dtype: type = np.float64) -> Py5Vector']), |
614 | 615 | (('Py5Vector', 'rotate'), ['(angle: float) -> Py5Vector2D', '(angle: float, dim: Union[int, str]) -> Py5Vector3D']),
|
615 | 616 | (('Py5Vector', 'rotate_around'), ['(angle: float, v: Py5Vector3D) -> Py5Vector3D']),
|
616 | 617 | (('Py5Graphics', 'points'), ['(coordinates: npt.NDArray[np.floating], /) -> None']),
|
|
627 | 628 | (('Py5Shape', 'bezier_vertices'), ['(coordinates: npt.NDArray[np.floating], /) -> None']),
|
628 | 629 | (('Py5Shape', 'curve_vertices'), ['(coordinates: npt.NDArray[np.floating], /) -> None']),
|
629 | 630 | (('Py5Shape', 'quadratic_vertices'), ['(coordinates: npt.NDArray[np.floating], /) -> None']),
|
630 |
| - (('Sketch', 'run_sketch'), ['(block: bool = None, *, py5_options: list[str] = None, sketch_args: list[str] = None, sketch_functions: dict[str, Callable] = None, jclassname: str = None) -> None']), |
| 631 | + (('Sketch', 'run_sketch'), ['(block: bool = None, *, py5_options: list[str] = None, sketch_args: list[str] = None, sketch_functions: dict[str, Callable] = None, jclassname: str = None, jclass_params: tuple[Any] = ()) -> None']), |
631 | 632 | (('Py5Functions', 'create_font_file'), ['(font_name: str, font_size: int, filename: str = None, characters: str = None, pause: bool = True) -> None']),
|
632 | 633 | (('Py5Functions', 'get_current_sketch'), ['() -> Sketch']),
|
633 | 634 | (('Py5Functions', 'reset_py5'), ['(jclassname: str = None) -> bool']),
|
|
649 | 650 | (('Py5Tools', 'screenshot'), ['(*, sketch: Sketch = None, hook_post_draw: bool = False) -> PIL_Image']),
|
650 | 651 | (('Py5Tools', 'save_frames'), ['(dirname: str, *, filename: str = "frame_####.png", period: float = 0.0, start: int = None, limit: int = 0, sketch: Sketch = None, hook_post_draw: bool = False, block: bool = False, display_progress: bool = True) -> None']),
|
651 | 652 | (('Py5Tools', 'animated_gif'), ['(filename: str, *, count: int = 0, period: float = 0.0, frame_numbers: Iterable = None, duration: float = 0.0, loop: int = 0, optimize: bool = True, sketch: Sketch = None, hook_post_draw: bool = False, block: bool = False) -> None']),
|
652 |
| - (('Py5Tools', 'offline_frame_processing'), ['(func: Callable[[npt.NDArray[np.uint8]], None], *, limit: int = 0, period: float = 0.0, batch_size: int = 1, complete_func: Callable[[], None] = None, stop_processing_func: Callable[[], bool] = None, sketch: Sketch = None, hook_post_draw: bool = False, queue_limit: int = None, block: bool = False) -> None']), |
| 653 | + (('Py5Tools', 'offline_frame_processing'), ['(func: Callable[[npt.NDArray[np.uint8]], None], *, limit: int = 0, period: float = 0.0, batch_size: int = 1, complete_func: Callable[[], None] = None, stop_processing_func: Callable[[], bool] = None, sketch: Sketch = None, hook_post_draw: bool = False, queue_limit: int = None, block: bool = False, display_progress: bool = True) -> None']), |
653 | 654 | (('Py5Tools', 'capture_frames'), ['(*, count: float = 0, period: float = 0.0, frame_numbers: Iterable = None, sketch: Sketch = None, hook_post_draw: bool = False, block: bool = False) -> list[PIL_Image]']),
|
654 | 655 | (('Py5Tools', 'sketch_portal'), ['(*, time_limit: float = 0.0, throttle_frame_rate: float = 30, scale: float = 1.0, quality: int = 75, portal_widget: Py5SketchPortal = None, sketch: Sketch = None, hook_post_draw: bool = False) -> None']),])
|
0 commit comments