|
89 | 89 | pass |
90 | 90 |
|
91 | 91 |
|
92 | | -__version__ = '0.9.0a0' |
| 92 | +__version__ = '0.9.1a1' |
93 | 93 |
|
94 | 94 | _PY5_USE_IMPORTED_MODE = py5_tools.get_imported_mode() |
95 | 95 | py5_tools._lock_imported_mode() |
96 | 96 |
|
97 | 97 | object_conversion.init_jpype_converters() |
98 | 98 |
|
| 99 | +warnings.filterwarnings("once", category=DeprecationWarning, module="py5") |
| 100 | + |
99 | 101 |
|
100 | 102 | _py5sketch = Sketch() |
101 | 103 |
|
@@ -2786,8 +2788,6 @@ def bezier_vertex(*args): |
2786 | 2788 | def bezier_vertices(coordinates: npt.NDArray[np.floating], /) -> None: |
2787 | 2789 | """Create a collection of bezier vertices. |
2788 | 2790 |
|
2789 | | - Underlying Processing method: PApplet.bezierVertices |
2790 | | - |
2791 | 2791 | Parameters |
2792 | 2792 | ---------- |
2793 | 2793 |
|
@@ -6395,8 +6395,6 @@ def curve_vertex(*args): |
6395 | 6395 | def curve_vertices(coordinates: npt.NDArray[np.floating], /) -> None: |
6396 | 6396 | """Create a collection of curve vertices. |
6397 | 6397 |
|
6398 | | - Underlying Processing method: PApplet.curveVertices |
6399 | | - |
6400 | 6398 | Parameters |
6401 | 6399 | ---------- |
6402 | 6400 |
|
@@ -9269,8 +9267,6 @@ def line(*args): |
9269 | 9267 | def lines(coordinates: npt.NDArray[np.floating], /) -> None: |
9270 | 9268 | """Draw a collection of lines to the screen. |
9271 | 9269 |
|
9272 | | - Underlying Processing method: PApplet.lines |
9273 | | - |
9274 | 9270 | Parameters |
9275 | 9271 | ---------- |
9276 | 9272 |
|
@@ -10705,8 +10701,6 @@ def points(coordinates: npt.NDArray[np.floating], /) -> None: |
10705 | 10701 | """Draw a collection of points, each a coordinate in space at the dimension of one |
10706 | 10702 | pixel. |
10707 | 10703 |
|
10708 | | - Underlying Processing method: PApplet.points |
10709 | | - |
10710 | 10704 | Parameters |
10711 | 10705 | ---------- |
10712 | 10706 |
|
@@ -11114,8 +11108,6 @@ def quadratic_vertex(*args): |
11114 | 11108 | def quadratic_vertices(coordinates: npt.NDArray[np.floating], /) -> None: |
11115 | 11109 | """Create a collection of quadratic vertices. |
11116 | 11110 |
|
11117 | | - Underlying Processing method: PApplet.quadraticVertices |
11118 | | - |
11119 | 11111 | Parameters |
11120 | 11112 | ---------- |
11121 | 11113 |
|
@@ -17331,8 +17323,6 @@ def vertex(*args): |
17331 | 17323 | def vertices(coordinates: npt.NDArray[np.floating], /) -> None: |
17332 | 17324 | """Create a collection of vertices. |
17333 | 17325 |
|
17334 | | - Underlying Processing method: PApplet.vertices |
17335 | | - |
17336 | 17326 | Parameters |
17337 | 17327 | ---------- |
17338 | 17328 |
|
@@ -21047,8 +21037,8 @@ class mode. Don't forget you can always replace the `draw()` function in a |
21047 | 21037 | Mode. This value must be the canonical name of your Processing Sketch class |
21048 | 21038 | (i.e. `"org.test.MySketch"`). The class must inherit from `py5.core.SketchBase`. |
21049 | 21039 | Read py5's online documentation to learn more about Processing Mode.""" |
21050 | | - caller_globals = inspect.stack()[1].frame.f_globals |
21051 | 21040 | caller_locals = inspect.stack()[1].frame.f_locals |
| 21041 | + caller_globals = inspect.stack()[1].frame.f_globals |
21052 | 21042 | functions, function_param_counts = bridge._extract_py5_user_function_data( |
21053 | 21043 | sketch_functions if sketch_functions else caller_locals) |
21054 | 21044 | functions = _split_setup.transform( |
@@ -21078,13 +21068,12 @@ class mode. Don't forget you can always replace the `draw()` function in a |
21078 | 21068 |
|
21079 | 21069 | _prepare_dynamic_variables(caller_locals, caller_globals) |
21080 | 21070 |
|
21081 | | - _py5sketch._run_sketch( |
21082 | | - functions, |
21083 | | - function_param_counts, |
21084 | | - block, |
21085 | | - py5_options, |
21086 | | - sketch_args, |
21087 | | - _osx_alt_run_method) |
| 21071 | + _py5sketch._run_sketch(functions, function_param_counts, block, |
| 21072 | + py5_options=py5_options, |
| 21073 | + sketch_args=sketch_args, |
| 21074 | + _caller_locals=caller_locals, |
| 21075 | + _caller_globals=caller_globals, |
| 21076 | + _osx_alt_run_method=_osx_alt_run_method) |
21088 | 21077 |
|
21089 | 21078 |
|
21090 | 21079 | def get_current_sketch() -> Sketch: |
|
0 commit comments