diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 466d830e..d2b9e07c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,7 +23,7 @@ jobs: - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: name: type-stubs - path: crates/processing_pyo3/mewnala/*.pyi + path: crates/processing_pyo3/processing_py/*.pyi linux: runs-on: ubuntu-22.04 @@ -42,7 +42,7 @@ jobs: - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 with: name: type-stubs - path: crates/processing_pyo3/mewnala + path: crates/processing_pyo3/processing_py - name: Setup QEMU if: matrix.target == 'aarch64' uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7.0 @@ -91,7 +91,7 @@ jobs: - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 with: name: type-stubs - path: crates/processing_pyo3/mewnala + path: crates/processing_pyo3/processing_py - name: Build wheels uses: PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b # v1.51.0 with: @@ -116,7 +116,7 @@ jobs: - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 with: name: type-stubs - path: crates/processing_pyo3/mewnala + path: crates/processing_pyo3/processing_py - name: Build wheels uses: PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b # v1.51.0 with: @@ -138,7 +138,7 @@ jobs: - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 with: name: type-stubs - path: crates/processing_pyo3/mewnala + path: crates/processing_pyo3/processing_py - name: Build sdist uses: PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b # v1.51.0 with: diff --git a/.gitignore b/.gitignore index 82eb289f..8e881939 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ /target/ /site/ crates/processing_ffi/include/ -crates/processing_pyo3/mewnala/*.pyi +crates/processing_pyo3/processing_py/*.pyi .DS_Store .ipynb_checkpoints/ \ No newline at end of file diff --git a/Cargo.lock b/Cargo.lock index 350f0e5a..41d209c1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3558,7 +3558,7 @@ dependencies = [ [[package]] name = "generate_stubs" -version = "0.0.5" +version = "0.4.0" dependencies = [ "pyo3-introspection", ] @@ -6112,7 +6112,7 @@ dependencies = [ [[package]] name = "processing" -version = "0.0.8" +version = "0.4.0" dependencies = [ "bevy", "js-sys", @@ -6133,7 +6133,7 @@ dependencies = [ [[package]] name = "processing_audio" -version = "0.1.0" +version = "0.4.0" dependencies = [ "bevy", "bevy_seedling", @@ -6141,7 +6141,7 @@ dependencies = [ [[package]] name = "processing_core" -version = "0.0.5" +version = "0.4.0" dependencies = [ "bevy", "raw-window-handle", @@ -6151,7 +6151,7 @@ dependencies = [ [[package]] name = "processing_cuda" -version = "0.0.5" +version = "0.4.0" dependencies = [ "bevy", "bevy_cuda", @@ -6161,7 +6161,7 @@ dependencies = [ [[package]] name = "processing_ffi" -version = "0.0.5" +version = "0.4.0" dependencies = [ "bevy", "cbindgen", @@ -6171,7 +6171,7 @@ dependencies = [ [[package]] name = "processing_glfw" -version = "0.0.5" +version = "0.4.0" dependencies = [ "bevy", "glfw", @@ -6183,7 +6183,7 @@ dependencies = [ [[package]] name = "processing_input" -version = "0.0.5" +version = "0.4.0" dependencies = [ "bevy", "processing_core", @@ -6191,7 +6191,7 @@ dependencies = [ [[package]] name = "processing_midi" -version = "0.0.5" +version = "0.4.0" dependencies = [ "bevy", "nannou_midi", @@ -6200,7 +6200,7 @@ dependencies = [ [[package]] name = "processing_pyo3" -version = "0.0.8" +version = "0.4.0" dependencies = [ "bevy", "png", @@ -6217,7 +6217,7 @@ dependencies = [ [[package]] name = "processing_render" -version = "0.0.5" +version = "0.4.0" dependencies = [ "bevy", "bevy_naga_reflect", @@ -6245,7 +6245,7 @@ dependencies = [ [[package]] name = "processing_wasm" -version = "0.0.5" +version = "0.4.0" dependencies = [ "bevy", "console_error_panic_hook", @@ -6261,7 +6261,7 @@ dependencies = [ [[package]] name = "processing_webcam" -version = "0.0.5" +version = "0.4.0" dependencies = [ "bevy", "nannou_webcam", diff --git a/Cargo.toml b/Cargo.toml index be9f10df..fdec29b8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "processing" -version = "0.0.8" +version = "0.4.0" edition = "2024" autoexamples = false diff --git a/README.md b/README.md index 41e66843..59140ae4 100644 --- a/README.md +++ b/README.md @@ -11,15 +11,15 @@ You can learn more about this project from this [talk at LibreGraphicsMeeting 20 There is two different things at work here : - libprocessing (this repo) is the low-level cross-platform library for the core Processing API. It's written in Rust, and thus lets write Processing sketches in Rust. -- mewnala is a Python package built directly from libprocessing, providing Python bindings for the library. It's available as any other Python package out there and lets you write Processing sketches in a Python environment, regardless of you having libprocessing or Rust installed. +- processing-py is a Python package built directly from libprocessing, providing Python bindings for the library. It's available as any other Python package out there and lets you write Processing sketches in a Python environment, regardless of you having libprocessing or Rust installed. -### mewnala (the python library) +### processing-py (the python library) Inside of our `processing_pyo3` crate we have created a python package that you can easily install with pip. Again, we are still very nascent, but let us know what kinds of snags you may run into while getting this set up. Try running the examples in the [processing_pyo3 examples directory](crates/processing_pyo3/examples). -We are big fans of [uv](https://github.com/astral-sh/uv) and this is the easiest way to get started using `mewnala` +We are big fans of [uv](https://github.com/astral-sh/uv) and this is the easiest way to get started using `processing-py` #### Setting up uv on linux or macOS ```bash @@ -31,24 +31,24 @@ curl -LsSf https://astral.sh/uv/install.sh | sh powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex" ``` -#### Install a mewnala +#### Install processing-py -We're going to create a folder named `mewnala-sketchbook` and install the `mewnala` package inside: +We're going to create a folder named `processing-py-sketchbook` and install the `processing-py` package inside: ```bash # Initialize a project with uv -uv init mewnala-sketchbook && cd mewnala-sketchbook +uv init processing-py-sketchbook && cd processing-py-sketchbook # add the package -uv add mewnala +uv add processing-py ``` -Now create a file named `sketch.py` at the root of `mewnala-sketchbook`. +Now create a file named `sketch.py` at the root of `processing-py-sketchbook`. You can use this code to test ```python -from mewnala import * +from processing_py import * def setup(): size(400, 400) @@ -176,7 +176,7 @@ sudo dpkg -i libglfw3_3.4-4_amd64.deb libglfw3-dev_3.4-4_amd64.deb We want your help building this library! -One place we could really use some help is with porting Processing examples to using mewnala, and then reporting where you get stuck or where things could be easier. Check out the effort here: https://github.com/processing/processing-examples-mewnala. +One place we could really use some help is with porting Processing examples to using processing-py, and then reporting where you get stuck or where things could be easier. Check out the ported examples in [crates/processing_pyo3/examples](crates/processing_pyo3/examples). You can see a list of outstanding tasks in our [issues](https://github.com/processing/libprocessing). However, while we're still in the early phases, consider checking in with us first in the `#devs-chat` channel on [Discord](https://discord.gg/h99u95nU7q) to coordinate our efforts. diff --git a/crates/processing_audio/Cargo.toml b/crates/processing_audio/Cargo.toml index ebc8ad8c..d055168a 100644 --- a/crates/processing_audio/Cargo.toml +++ b/crates/processing_audio/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "processing_audio" -version = "0.1.0" +version = "0.4.0" edition = "2024" [dependencies] diff --git a/crates/processing_core/Cargo.toml b/crates/processing_core/Cargo.toml index 93ad03a2..2b385477 100644 --- a/crates/processing_core/Cargo.toml +++ b/crates/processing_core/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "processing_core" -version = "0.0.5" +version = "0.4.0" edition = "2024" [lints] diff --git a/crates/processing_cuda/Cargo.toml b/crates/processing_cuda/Cargo.toml index 7ec477a9..e8fdf919 100644 --- a/crates/processing_cuda/Cargo.toml +++ b/crates/processing_cuda/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "processing_cuda" -version = "0.0.5" +version = "0.4.0" edition = "2024" [lints] diff --git a/crates/processing_ffi/Cargo.toml b/crates/processing_ffi/Cargo.toml index 16d41364..3744d5e7 100644 --- a/crates/processing_ffi/Cargo.toml +++ b/crates/processing_ffi/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "processing_ffi" -version = "0.0.5" +version = "0.4.0" edition = "2024" [lints] diff --git a/crates/processing_glfw/Cargo.toml b/crates/processing_glfw/Cargo.toml index de7c8019..071752b1 100644 --- a/crates/processing_glfw/Cargo.toml +++ b/crates/processing_glfw/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "processing_glfw" -version = "0.0.5" +version = "0.4.0" edition = "2024" [lints] diff --git a/crates/processing_input/Cargo.toml b/crates/processing_input/Cargo.toml index 02cc7424..87ee43a1 100644 --- a/crates/processing_input/Cargo.toml +++ b/crates/processing_input/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "processing_input" -version = "0.0.5" +version = "0.4.0" edition = "2024" [lints] diff --git a/crates/processing_midi/Cargo.toml b/crates/processing_midi/Cargo.toml index 593cc416..62203ddb 100644 --- a/crates/processing_midi/Cargo.toml +++ b/crates/processing_midi/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "processing_midi" -version = "0.0.5" +version = "0.4.0" edition = "2024" [dependencies] diff --git a/crates/processing_pyo3/Cargo.toml b/crates/processing_pyo3/Cargo.toml index ce5c3449..6b089cc3 100644 --- a/crates/processing_pyo3/Cargo.toml +++ b/crates/processing_pyo3/Cargo.toml @@ -1,13 +1,13 @@ [package] name = "processing_pyo3" -version = "0.0.8" +version = "0.4.0" edition = "2024" [lints] workspace = true [lib] -name = "mewnala" +name = "processing_py" crate-type = ["cdylib", "rlib"] [features] diff --git a/crates/processing_pyo3/README.md b/crates/processing_pyo3/README.md index 3e28caa0..a0d154a7 100644 --- a/crates/processing_pyo3/README.md +++ b/crates/processing_pyo3/README.md @@ -1,4 +1,4 @@ -# Pycessing +# processing-py Prototype for python bindings to libprocessing @@ -19,6 +19,10 @@ $ maturin develop # ... # $ python ->>> import processing ->>> processing.size(500, 500) +>>> import processing_py +>>> processing_py.size(500, 500) ``` + +## Acknowledgements + +Thank you to [Faruk Hammoud](https://github.com/FarukHammoud) for generously handing over the `processing-py` name. Their original [processing_py](https://github.com/FarukHammoud/processing_py) project, a Python graphics library based on Processing, was published under this name from 2020 to 2021 (versions 0.1.0–0.3.7). diff --git a/crates/processing_pyo3/examples/Basics/Arrays/array_2d.py b/crates/processing_pyo3/examples/Basics/Arrays/array_2d.py index d4e78393..a0c7f45c 100644 --- a/crates/processing_pyo3/examples/Basics/Arrays/array_2d.py +++ b/crates/processing_pyo3/examples/Basics/Arrays/array_2d.py @@ -4,7 +4,7 @@ # Values in a 2D array are accessed through two index values. # 2D arrays are useful for storing images. In this example, each dot # is colored in relation to its distance from the center of the image. -from mewnala import * +from processing_py import * distances = [] max_distance = 0.0 diff --git a/crates/processing_pyo3/examples/Basics/Arrays/array_objects.py b/crates/processing_pyo3/examples/Basics/Arrays/array_objects.py index deac3be2..44ae0163 100644 --- a/crates/processing_pyo3/examples/Basics/Arrays/array_objects.py +++ b/crates/processing_pyo3/examples/Basics/Arrays/array_objects.py @@ -1,7 +1,7 @@ # Array Objects. # # Demonstrates the syntax for creating a list of custom objects. -from mewnala import * +from processing_py import * unit = 40 count = 0 diff --git a/crates/processing_pyo3/examples/Basics/Arrays/array_sketch.py b/crates/processing_pyo3/examples/Basics/Arrays/array_sketch.py index b29a7fbe..f385193e 100644 --- a/crates/processing_pyo3/examples/Basics/Arrays/array_sketch.py +++ b/crates/processing_pyo3/examples/Basics/Arrays/array_sketch.py @@ -7,7 +7,7 @@ # In this example, an array named "coswave" is created and # filled with the cosine values. This data is displayed three # separate ways on the screen. -from mewnala import * +from processing_py import * coswave = [] diff --git a/crates/processing_pyo3/examples/Basics/Camera/move_eye.py b/crates/processing_pyo3/examples/Basics/Camera/move_eye.py index eaf966da..c4e481ab 100644 --- a/crates/processing_pyo3/examples/Basics/Camera/move_eye.py +++ b/crates/processing_pyo3/examples/Basics/Camera/move_eye.py @@ -2,7 +2,7 @@ # by Simon Greenwold. # # The camera lifts up (controlled by mouseY) while looking at the same point. -from mewnala import * +from processing_py import * light = None diff --git a/crates/processing_pyo3/examples/Basics/Camera/orthographic.py b/crates/processing_pyo3/examples/Basics/Camera/orthographic.py index 2af88f60..fc3dd7dd 100644 --- a/crates/processing_pyo3/examples/Basics/Camera/orthographic.py +++ b/crates/processing_pyo3/examples/Basics/Camera/orthographic.py @@ -6,7 +6,7 @@ # origin away from the viewer and will clip the geometry. # Click a mouse button to switch between the perspective and # orthographic projections. -from mewnala import * +from processing_py import * show_perspective = False light = None diff --git a/crates/processing_pyo3/examples/Basics/Camera/perspective.py b/crates/processing_pyo3/examples/Basics/Camera/perspective.py index 1fa2a396..c8bb57d3 100644 --- a/crates/processing_pyo3/examples/Basics/Camera/perspective.py +++ b/crates/processing_pyo3/examples/Basics/Camera/perspective.py @@ -11,7 +11,7 @@ # The version of perspective without parameters sets the default # perspective and the version with four parameters allows the programmer # to set the area precisely. -from mewnala import * +from processing_py import * light = None diff --git a/crates/processing_pyo3/examples/Basics/Color/brightness.py b/crates/processing_pyo3/examples/Basics/Color/brightness.py index b8765386..1f934c27 100644 --- a/crates/processing_pyo3/examples/Basics/Color/brightness.py +++ b/crates/processing_pyo3/examples/Basics/Color/brightness.py @@ -3,7 +3,7 @@ # # Brightness is the relative lightness or darkness of a color. # Move the cursor vertically over each bar to alter its brightness. -from mewnala import * +from processing_py import * bar_width = 20 last_bar = -1 diff --git a/crates/processing_pyo3/examples/Basics/Color/color_variables.py b/crates/processing_pyo3/examples/Basics/Color/color_variables.py index af1a9103..3beba63a 100644 --- a/crates/processing_pyo3/examples/Basics/Color/color_variables.py +++ b/crates/processing_pyo3/examples/Basics/Color/color_variables.py @@ -2,7 +2,7 @@ # # This example creates variables for colors that may be referred to # in the program by a name, rather than a number. -from mewnala import * +from processing_py import * inside = None middle = None diff --git a/crates/processing_pyo3/examples/Basics/Color/hue.py b/crates/processing_pyo3/examples/Basics/Color/hue.py index 8378314f..cc0fe6e4 100644 --- a/crates/processing_pyo3/examples/Basics/Color/hue.py +++ b/crates/processing_pyo3/examples/Basics/Color/hue.py @@ -4,7 +4,7 @@ # and is typically referred to as the name of the color such as # red, blue, or yellow. In this example, move the cursor vertically # over each bar to alter its hue. -from mewnala import * +from processing_py import * bar_width = 20 last_bar = -1 diff --git a/crates/processing_pyo3/examples/Basics/Color/linear_gradient.py b/crates/processing_pyo3/examples/Basics/Color/linear_gradient.py index 98c47523..f5f04df2 100644 --- a/crates/processing_pyo3/examples/Basics/Color/linear_gradient.py +++ b/crates/processing_pyo3/examples/Basics/Color/linear_gradient.py @@ -2,7 +2,7 @@ # # The lerp_color() function is useful for interpolating # between two colors. -from mewnala import * +from processing_py import * # Constants Y_AXIS = 1 diff --git a/crates/processing_pyo3/examples/Basics/Color/radial_gradient.py b/crates/processing_pyo3/examples/Basics/Color/radial_gradient.py index 2a388fef..9df92acd 100644 --- a/crates/processing_pyo3/examples/Basics/Color/radial_gradient.py +++ b/crates/processing_pyo3/examples/Basics/Color/radial_gradient.py @@ -2,7 +2,7 @@ # # Draws a series of concentric circles to create a gradient # from one color to another. -from mewnala import * +from processing_py import * dim = 0 diff --git a/crates/processing_pyo3/examples/Basics/Color/relativity.py b/crates/processing_pyo3/examples/Basics/Color/relativity.py index 67520983..ca226196 100644 --- a/crates/processing_pyo3/examples/Basics/Color/relativity.py +++ b/crates/processing_pyo3/examples/Basics/Color/relativity.py @@ -3,7 +3,7 @@ # Each color is perceived in relation to other colors. The top and bottom # bars each contain the same component colors, but a different display order # causes individual colors to appear differently. -from mewnala import * +from processing_py import * a = None b = None diff --git a/crates/processing_pyo3/examples/Basics/Color/saturation.py b/crates/processing_pyo3/examples/Basics/Color/saturation.py index f789d867..a56421ac 100644 --- a/crates/processing_pyo3/examples/Basics/Color/saturation.py +++ b/crates/processing_pyo3/examples/Basics/Color/saturation.py @@ -4,7 +4,7 @@ # amount of gray in proportion to the hue. A "saturated" color is pure # and an "unsaturated" color has a large percentage of gray. # Move the cursor vertically over each bar to alter its saturation. -from mewnala import * +from processing_py import * bar_width = 20 last_bar = -1 diff --git a/crates/processing_pyo3/examples/Basics/Color/wave_gradient.py b/crates/processing_pyo3/examples/Basics/Color/wave_gradient.py index 9bd3d939..deb2a230 100644 --- a/crates/processing_pyo3/examples/Basics/Color/wave_gradient.py +++ b/crates/processing_pyo3/examples/Basics/Color/wave_gradient.py @@ -2,7 +2,7 @@ # by Ira Greenberg. # # Generate a gradient along a sin() wave. -from mewnala import * +from processing_py import * amplitude = 30 fill_gap = 2.5 diff --git a/crates/processing_pyo3/examples/Basics/Control/conditionals_1.py b/crates/processing_pyo3/examples/Basics/Control/conditionals_1.py index dcf5acb4..bdf132cc 100644 --- a/crates/processing_pyo3/examples/Basics/Control/conditionals_1.py +++ b/crates/processing_pyo3/examples/Basics/Control/conditionals_1.py @@ -7,7 +7,7 @@ # The questions asked within a program are always logical # or relational statements. For example, if the variable 'i' is # equal to zero then draw a line. -from mewnala import * +from processing_py import * size(640, 360) background(0.0) diff --git a/crates/processing_pyo3/examples/Basics/Control/conditionals_2.py b/crates/processing_pyo3/examples/Basics/Control/conditionals_2.py index b35df8da..14281ba2 100644 --- a/crates/processing_pyo3/examples/Basics/Control/conditionals_2.py +++ b/crates/processing_pyo3/examples/Basics/Control/conditionals_2.py @@ -4,7 +4,7 @@ # example by adding the keyword "else". This allows conditionals # to ask two or more sequential questions, each with a different # action. -from mewnala import * +from processing_py import * size(640, 360) background(0.0) diff --git a/crates/processing_pyo3/examples/Basics/Control/embedded_iteration.py b/crates/processing_pyo3/examples/Basics/Control/embedded_iteration.py index e4d94ccb..214a1602 100644 --- a/crates/processing_pyo3/examples/Basics/Control/embedded_iteration.py +++ b/crates/processing_pyo3/examples/Basics/Control/embedded_iteration.py @@ -1,7 +1,7 @@ # Embedding Iteration. # # Embedding "for" structures allows repetition in two dimensions. -from mewnala import * +from processing_py import * size(640, 360) background(0.0) diff --git a/crates/processing_pyo3/examples/Basics/Control/iteration.py b/crates/processing_pyo3/examples/Basics/Control/iteration.py index d99934f7..aff76991 100644 --- a/crates/processing_pyo3/examples/Basics/Control/iteration.py +++ b/crates/processing_pyo3/examples/Basics/Control/iteration.py @@ -1,7 +1,7 @@ # Iteration. # # Iteration with a "for" structure to construct repetitive forms. -from mewnala import * +from processing_py import * y = 0 num = 14 diff --git a/crates/processing_pyo3/examples/Basics/Control/logical_operators.py b/crates/processing_pyo3/examples/Basics/Control/logical_operators.py index 11285a16..8d8cc177 100644 --- a/crates/processing_pyo3/examples/Basics/Control/logical_operators.py +++ b/crates/processing_pyo3/examples/Basics/Control/logical_operators.py @@ -3,7 +3,7 @@ # The logical operators for AND (and) and OR (or) are used to # combine simple relational statements into more complex expressions. # The NOT (not) operator is used to negate a boolean statement. -from mewnala import * +from processing_py import * size(640, 360) background(0.49) diff --git a/crates/processing_pyo3/examples/Basics/Data/characters_strings.py b/crates/processing_pyo3/examples/Basics/Data/characters_strings.py index 0f389d6b..bbda88e4 100644 --- a/crates/processing_pyo3/examples/Basics/Data/characters_strings.py +++ b/crates/processing_pyo3/examples/Basics/Data/characters_strings.py @@ -12,7 +12,7 @@ # # A string is actually a class with its own methods, some of which are # featured below. -from mewnala import * +from processing_py import * letter = "" words = "Begin..." diff --git a/crates/processing_pyo3/examples/Basics/Data/datatype_conversion.py b/crates/processing_pyo3/examples/Basics/Data/datatype_conversion.py index f2d5a7e5..ce5211a7 100644 --- a/crates/processing_pyo3/examples/Basics/Data/datatype_conversion.py +++ b/crates/processing_pyo3/examples/Basics/Data/datatype_conversion.py @@ -4,7 +4,7 @@ # data to another. Each of the conversion functions converts its parameter # to an equivalent representation within its datatype. # The conversion functions include int(), float(), str(), ord(), chr(), and others. -from mewnala import * +from processing_py import * size(640, 360) background(0.0) diff --git a/crates/processing_pyo3/examples/Basics/Data/integers_floats.py b/crates/processing_pyo3/examples/Basics/Data/integers_floats.py index b324f981..a6e018c2 100644 --- a/crates/processing_pyo3/examples/Basics/Data/integers_floats.py +++ b/crates/processing_pyo3/examples/Basics/Data/integers_floats.py @@ -5,7 +5,7 @@ # a decimal point. A float is a floating-point number, which means # it is a number that has a decimal place. Floats are used when # more precision is needed. -from mewnala import * +from processing_py import * a = 0 # Create a variable "a" of the datatype "int" b = 0.0 # Create a variable "b" of the datatype "float" diff --git a/crates/processing_pyo3/examples/Basics/Data/true_false.py b/crates/processing_pyo3/examples/Basics/Data/true_false.py index 130a2f11..0b1bf0df 100644 --- a/crates/processing_pyo3/examples/Basics/Data/true_false.py +++ b/crates/processing_pyo3/examples/Basics/Data/true_false.py @@ -5,7 +5,7 @@ # determine the flow of a program. In this example, when the # boolean value "x" is true, vertical black lines are drawn and when # the boolean value "x" is false, horizontal gray lines are drawn. -from mewnala import * +from processing_py import * b = False diff --git a/crates/processing_pyo3/examples/Basics/Data/variable_scope.py b/crates/processing_pyo3/examples/Basics/Data/variable_scope.py index 0b7a7d70..c11f9cc1 100644 --- a/crates/processing_pyo3/examples/Basics/Data/variable_scope.py +++ b/crates/processing_pyo3/examples/Basics/Data/variable_scope.py @@ -9,7 +9,7 @@ # global variable, the program will use the local variable to make # its calculations within the current scope. In Python a variable # is local to the whole function it is assigned in, not to a block. -from mewnala import * +from processing_py import * a = 80 # Create a global variable "a" diff --git a/crates/processing_pyo3/examples/Basics/Data/variables.py b/crates/processing_pyo3/examples/Basics/Data/variables.py index cfd738e1..d897857d 100644 --- a/crates/processing_pyo3/examples/Basics/Data/variables.py +++ b/crates/processing_pyo3/examples/Basics/Data/variables.py @@ -2,7 +2,7 @@ # # Variables are used for storing values. In this example, change # the values of variables to affect the composition. -from mewnala import * +from processing_py import * size(640, 360) background(0.0) diff --git a/crates/processing_pyo3/examples/Basics/Form/bezier.py b/crates/processing_pyo3/examples/Basics/Form/bezier.py index b1e5bac2..781c92f7 100644 --- a/crates/processing_pyo3/examples/Basics/Form/bezier.py +++ b/crates/processing_pyo3/examples/Basics/Form/bezier.py @@ -4,7 +4,7 @@ # first point in the curve and the last two parameters specify # the last point. The middle parameters set the control points # that define the shape of the curve. -from mewnala import * +from processing_py import * def setup(): diff --git a/crates/processing_pyo3/examples/Basics/Form/pie_chart.py b/crates/processing_pyo3/examples/Basics/Form/pie_chart.py index b9c0c0e6..a13192c3 100644 --- a/crates/processing_pyo3/examples/Basics/Form/pie_chart.py +++ b/crates/processing_pyo3/examples/Basics/Form/pie_chart.py @@ -2,7 +2,7 @@ # # Uses the arc() function to generate a pie chart from the data # stored in an array. -from mewnala import * +from processing_py import * angles = [30, 10, 45, 35, 60, 38, 75, 67] diff --git a/crates/processing_pyo3/examples/Basics/Form/points_lines.py b/crates/processing_pyo3/examples/Basics/Form/points_lines.py index 4e53f09c..40c26d17 100644 --- a/crates/processing_pyo3/examples/Basics/Form/points_lines.py +++ b/crates/processing_pyo3/examples/Basics/Form/points_lines.py @@ -3,7 +3,7 @@ # Points and lines can be used to draw basic geometry. # Change the value of the variable 'd' to scale the form. # The four variables set the positions based on the value of 'd'. -from mewnala import * +from processing_py import * d = 70 p1 = d diff --git a/crates/processing_pyo3/examples/Basics/Form/primitives_3d.py b/crates/processing_pyo3/examples/Basics/Form/primitives_3d.py index 80a24356..d452c6aa 100644 --- a/crates/processing_pyo3/examples/Basics/Form/primitives_3d.py +++ b/crates/processing_pyo3/examples/Basics/Form/primitives_3d.py @@ -5,7 +5,7 @@ # The box() and sphere() functions each have one parameter # which is used to specify their size. These shapes are # positioned using the translate() function. -from mewnala import * +from processing_py import * def setup(): diff --git a/crates/processing_pyo3/examples/Basics/Form/regular_polygon.py b/crates/processing_pyo3/examples/Basics/Form/regular_polygon.py index 77d0af20..8155d16a 100644 --- a/crates/processing_pyo3/examples/Basics/Form/regular_polygon.py +++ b/crates/processing_pyo3/examples/Basics/Form/regular_polygon.py @@ -5,7 +5,7 @@ # created for this example is capable of drawing any # regular polygon. Try placing different numbers into the # polygon() function calls within draw() to explore. -from mewnala import * +from processing_py import * def setup(): diff --git a/crates/processing_pyo3/examples/Basics/Form/shape_primitives.py b/crates/processing_pyo3/examples/Basics/Form/shape_primitives.py index 8799f3cf..d6b64a87 100644 --- a/crates/processing_pyo3/examples/Basics/Form/shape_primitives.py +++ b/crates/processing_pyo3/examples/Basics/Form/shape_primitives.py @@ -5,7 +5,7 @@ # with rect() and circles are made with ellipse(). Each # of these functions requires a number of parameters to # determine the shape's position and size. -from mewnala import * +from processing_py import * def setup(): diff --git a/crates/processing_pyo3/examples/Basics/Form/star.py b/crates/processing_pyo3/examples/Basics/Form/star.py index 92aea887..530a2cd7 100644 --- a/crates/processing_pyo3/examples/Basics/Form/star.py +++ b/crates/processing_pyo3/examples/Basics/Form/star.py @@ -3,7 +3,7 @@ # The star() function created for this example is capable of drawing a # wide range of different forms. Try placing different numbers into the # star() function calls within draw() to explore. -from mewnala import * +from processing_py import * def setup(): diff --git a/crates/processing_pyo3/examples/Basics/Form/triangle_strip.py b/crates/processing_pyo3/examples/Basics/Form/triangle_strip.py index 6f913462..ccc37e6d 100644 --- a/crates/processing_pyo3/examples/Basics/Form/triangle_strip.py +++ b/crates/processing_pyo3/examples/Basics/Form/triangle_strip.py @@ -4,7 +4,7 @@ # Generate a closed ring using the vertex() function and # begin_shape(TRIANGLE_STRIP) mode. The outside_radius and inside_radius # variables control ring's radii respectively. -from mewnala import * +from processing_py import * x = 0 y = 0 diff --git a/crates/processing_pyo3/examples/Basics/Image/alphamask.py b/crates/processing_pyo3/examples/Basics/Image/alphamask.py index 0621d57c..2270125a 100644 --- a/crates/processing_pyo3/examples/Basics/Image/alphamask.py +++ b/crates/processing_pyo3/examples/Basics/Image/alphamask.py @@ -3,7 +3,7 @@ # Loads a "mask" for an image to specify the transparency # in different parts of the image. The two images are blended # together using the mask() method of an offscreen graphics buffer. -from mewnala import * +from processing_py import * img = None img_mask = None diff --git a/crates/processing_pyo3/examples/Basics/Image/background_image.py b/crates/processing_pyo3/examples/Basics/Image/background_image.py index 4b4e25d7..c0e9b3ab 100644 --- a/crates/processing_pyo3/examples/Basics/Image/background_image.py +++ b/crates/processing_pyo3/examples/Basics/Image/background_image.py @@ -3,7 +3,7 @@ # This example presents the fastest way to load a background image # into Processing. To load an image as the background, it must be # the same width and height as the program. -from mewnala import * +from processing_py import * bg = None y = 0 diff --git a/crates/processing_pyo3/examples/Basics/Image/create_image.py b/crates/processing_pyo3/examples/Basics/Image/create_image.py index e7595cc2..da8dff02 100644 --- a/crates/processing_pyo3/examples/Basics/Image/create_image.py +++ b/crates/processing_pyo3/examples/Basics/Image/create_image.py @@ -2,7 +2,7 @@ # # The create_image() function provides a fresh buffer of pixels to play with. # This example creates an image gradient. -from mewnala import * +from processing_py import * img = None diff --git a/crates/processing_pyo3/examples/Basics/Image/load_display_image.py b/crates/processing_pyo3/examples/Basics/Image/load_display_image.py index 66709520..f95cb9df 100644 --- a/crates/processing_pyo3/examples/Basics/Image/load_display_image.py +++ b/crates/processing_pyo3/examples/Basics/Image/load_display_image.py @@ -2,7 +2,7 @@ # # Images can be loaded and displayed to the screen at their actual size # or any other size. -from mewnala import * +from processing_py import * img = None diff --git a/crates/processing_pyo3/examples/Basics/Image/pointillism.py b/crates/processing_pyo3/examples/Basics/Image/pointillism.py index 13deb669..e0a6a1b0 100644 --- a/crates/processing_pyo3/examples/Basics/Image/pointillism.py +++ b/crates/processing_pyo3/examples/Basics/Image/pointillism.py @@ -4,7 +4,7 @@ # Mouse horizontal location controls size of dots. # Creates a simple pointillist effect using ellipses colored # according to pixels in an image. -from mewnala import * +from processing_py import * img = None small_point = 0 diff --git a/crates/processing_pyo3/examples/Basics/Image/request_image.py b/crates/processing_pyo3/examples/Basics/Image/request_image.py index 063085ba..05c8727a 100644 --- a/crates/processing_pyo3/examples/Basics/Image/request_image.py +++ b/crates/processing_pyo3/examples/Basics/Image/request_image.py @@ -6,7 +6,7 @@ # the sketch does not freeze while they load. It's useful when you are # loading large images. These images are small for a quick download, but # try it with your own huge images to get the full effect. -from mewnala import * +from processing_py import * img_count = 12 imgs = [] diff --git a/crates/processing_pyo3/examples/Basics/Image/transparency.py b/crates/processing_pyo3/examples/Basics/Image/transparency.py index e862edf5..36091d57 100644 --- a/crates/processing_pyo3/examples/Basics/Image/transparency.py +++ b/crates/processing_pyo3/examples/Basics/Image/transparency.py @@ -3,7 +3,7 @@ # Move the pointer left and right across the image to change # its position. This program overlays one image over another # by modifying the alpha value of the image with the tint() function. -from mewnala import * +from processing_py import * img = None offset = 0.0 diff --git a/crates/processing_pyo3/examples/Basics/Input/clock.py b/crates/processing_pyo3/examples/Basics/Input/clock.py index f9b8d83a..939aaba6 100644 --- a/crates/processing_pyo3/examples/Basics/Input/clock.py +++ b/crates/processing_pyo3/examples/Basics/Input/clock.py @@ -4,7 +4,7 @@ # In this example, sin() and cos() values are used to set the # position of the hands. from datetime import datetime -from mewnala import * +from processing_py import * cx = 0 cy = 0 diff --git a/crates/processing_pyo3/examples/Basics/Input/constrain.py b/crates/processing_pyo3/examples/Basics/Input/constrain.py index 140c95d8..19f38979 100644 --- a/crates/processing_pyo3/examples/Basics/Input/constrain.py +++ b/crates/processing_pyo3/examples/Basics/Input/constrain.py @@ -2,7 +2,7 @@ # # Move the mouse across the screen to move the circle. # The program constrains the circle to its box. -from mewnala import * +from processing_py import * mx = 0.0 my = 0.0 diff --git a/crates/processing_pyo3/examples/Basics/Input/easing.py b/crates/processing_pyo3/examples/Basics/Input/easing.py index 3a0c1016..11d5638a 100644 --- a/crates/processing_pyo3/examples/Basics/Input/easing.py +++ b/crates/processing_pyo3/examples/Basics/Input/easing.py @@ -6,7 +6,7 @@ # symbol and the cursor. If the distance is larger than # 1 pixel, the symbol moves part of the distance (0.05) from its # current position toward the cursor. -from mewnala import * +from processing_py import * x = 0.0 y = 0.0 diff --git a/crates/processing_pyo3/examples/Basics/Input/keyboard.py b/crates/processing_pyo3/examples/Basics/Input/keyboard.py index b2709d45..274c06dc 100644 --- a/crates/processing_pyo3/examples/Basics/Input/keyboard.py +++ b/crates/processing_pyo3/examples/Basics/Input/keyboard.py @@ -3,7 +3,7 @@ # Click on the image to give it focus and press the letter keys # to create forms in time and space. Each key has a unique identifying # number. These numbers can be used to position shapes in space. -from mewnala import * +from processing_py import * rect_width = 0 diff --git a/crates/processing_pyo3/examples/Basics/Input/keyboard_functions.py b/crates/processing_pyo3/examples/Basics/Input/keyboard_functions.py index d265082f..d6d9936f 100644 --- a/crates/processing_pyo3/examples/Basics/Input/keyboard_functions.py +++ b/crates/processing_pyo3/examples/Basics/Input/keyboard_functions.py @@ -7,7 +7,7 @@ # function that is called when a key is released. # # Original 'Color Typewriter' concept by John Maeda. -from mewnala import * +from processing_py import * max_height = 40 min_height = 20 diff --git a/crates/processing_pyo3/examples/Basics/Input/milliseconds.py b/crates/processing_pyo3/examples/Basics/Input/milliseconds.py index 3b304500..50097131 100644 --- a/crates/processing_pyo3/examples/Basics/Input/milliseconds.py +++ b/crates/processing_pyo3/examples/Basics/Input/milliseconds.py @@ -4,7 +4,7 @@ # Processing keeps track of the number of milliseconds a program has run. # By modifying this number with the modulo(%) operator, # different patterns in time are created. -from mewnala import * +from processing_py import * unit = 0 diff --git a/crates/processing_pyo3/examples/Basics/Input/mouse_1d.py b/crates/processing_pyo3/examples/Basics/Input/mouse_1d.py index 164244b2..0bec2f8c 100644 --- a/crates/processing_pyo3/examples/Basics/Input/mouse_1d.py +++ b/crates/processing_pyo3/examples/Basics/Input/mouse_1d.py @@ -3,7 +3,7 @@ # Move the mouse left and right to shift the balance. # The "mouse_x" variable is used to control both the # size and color of the rectangles. -from mewnala import * +from processing_py import * def setup(): diff --git a/crates/processing_pyo3/examples/Basics/Input/mouse_2d.py b/crates/processing_pyo3/examples/Basics/Input/mouse_2d.py index ea80bc1a..eaba92ae 100644 --- a/crates/processing_pyo3/examples/Basics/Input/mouse_2d.py +++ b/crates/processing_pyo3/examples/Basics/Input/mouse_2d.py @@ -1,7 +1,7 @@ # Mouse 2D. # # Moving the mouse changes the position and size of each box. -from mewnala import * +from processing_py import * def setup(): diff --git a/crates/processing_pyo3/examples/Basics/Input/mouse_functions.py b/crates/processing_pyo3/examples/Basics/Input/mouse_functions.py index 82d078c0..c2877bf1 100644 --- a/crates/processing_pyo3/examples/Basics/Input/mouse_functions.py +++ b/crates/processing_pyo3/examples/Basics/Input/mouse_functions.py @@ -1,7 +1,7 @@ # Mouse Functions. # # Click on the box and drag it across the screen. -from mewnala import * +from processing_py import * bx = 0.0 by = 0.0 diff --git a/crates/processing_pyo3/examples/Basics/Input/mouse_press.py b/crates/processing_pyo3/examples/Basics/Input/mouse_press.py index 43a3cfb8..2bb691fc 100644 --- a/crates/processing_pyo3/examples/Basics/Input/mouse_press.py +++ b/crates/processing_pyo3/examples/Basics/Input/mouse_press.py @@ -2,7 +2,7 @@ # # Move the mouse to position the shape. # Press the mouse button to invert the color. -from mewnala import * +from processing_py import * def setup(): diff --git a/crates/processing_pyo3/examples/Basics/Input/mouse_signals.py b/crates/processing_pyo3/examples/Basics/Input/mouse_signals.py index b326e41c..5531eb4a 100644 --- a/crates/processing_pyo3/examples/Basics/Input/mouse_signals.py +++ b/crates/processing_pyo3/examples/Basics/Input/mouse_signals.py @@ -4,7 +4,7 @@ # The top row is the signal from "mouse_x", # the middle row is the signal from "mouse_y", # and the bottom row is the signal from "mouse_is_pressed". -from mewnala import * +from processing_py import * xvals = [] yvals = [] diff --git a/crates/processing_pyo3/examples/Basics/Input/storing_input.py b/crates/processing_pyo3/examples/Basics/Input/storing_input.py index d00ac203..06e214da 100644 --- a/crates/processing_pyo3/examples/Basics/Input/storing_input.py +++ b/crates/processing_pyo3/examples/Basics/Input/storing_input.py @@ -5,7 +5,7 @@ # into an array and played back every frame. Between each # frame, the newest value are added to the end of each array # and the oldest value is deleted. -from mewnala import * +from processing_py import * num = 60 mx = [0.0] * num diff --git a/crates/processing_pyo3/examples/Basics/Lights/directional.py b/crates/processing_pyo3/examples/Basics/Lights/directional.py index fa55533a..a9dd41ae 100644 --- a/crates/processing_pyo3/examples/Basics/Lights/directional.py +++ b/crates/processing_pyo3/examples/Basics/Lights/directional.py @@ -5,7 +5,7 @@ # when hitting a surface squarely and weaker if it hits at a # a gentle angle. After hitting a surface, a directional lights # scatters in all directions. -from mewnala import * +from processing_py import * light = None diff --git a/crates/processing_pyo3/examples/Basics/Lights/mixture.py b/crates/processing_pyo3/examples/Basics/Lights/mixture.py index 706ba2c2..033790fa 100644 --- a/crates/processing_pyo3/examples/Basics/Lights/mixture.py +++ b/crates/processing_pyo3/examples/Basics/Lights/mixture.py @@ -2,7 +2,7 @@ # by Simon Greenwold. # # Display a box with three different kinds of lights. -from mewnala import * +from processing_py import * point = None directional = None diff --git a/crates/processing_pyo3/examples/Basics/Lights/mixture_grid.py b/crates/processing_pyo3/examples/Basics/Lights/mixture_grid.py index 4ae00e16..21a0497d 100644 --- a/crates/processing_pyo3/examples/Basics/Lights/mixture_grid.py +++ b/crates/processing_pyo3/examples/Basics/Lights/mixture_grid.py @@ -2,7 +2,7 @@ # modified from an example by Simon Greenwold. # # Display a 2D grid of boxes with three different kinds of lights. -from mewnala import * +from processing_py import * point = None directional = None diff --git a/crates/processing_pyo3/examples/Basics/Lights/on_off.py b/crates/processing_pyo3/examples/Basics/Lights/on_off.py index e29647cc..56aa1f3b 100644 --- a/crates/processing_pyo3/examples/Basics/Lights/on_off.py +++ b/crates/processing_pyo3/examples/Basics/Lights/on_off.py @@ -3,7 +3,7 @@ # Uses the default lights to show a simple box. The lights() function # is used to turn on the default lighting. Click the mouse to turn the # lights off. -from mewnala import * +from processing_py import * spin = 0.0 light = None diff --git a/crates/processing_pyo3/examples/Basics/Lights/reflection.py b/crates/processing_pyo3/examples/Basics/Lights/reflection.py index 87797be0..f8bdd104 100644 --- a/crates/processing_pyo3/examples/Basics/Lights/reflection.py +++ b/crates/processing_pyo3/examples/Basics/Lights/reflection.py @@ -3,7 +3,7 @@ # # Vary the specular reflection component of a material # with the horizontal position of the mouse. -from mewnala import * +from processing_py import * light = None diff --git a/crates/processing_pyo3/examples/Basics/Lights/spot.py b/crates/processing_pyo3/examples/Basics/Lights/spot.py index 77c14c4a..3801f589 100644 --- a/crates/processing_pyo3/examples/Basics/Lights/spot.py +++ b/crates/processing_pyo3/examples/Basics/Lights/spot.py @@ -2,7 +2,7 @@ # # Move the mouse the change the position and concentation # of a blue spot light. -from mewnala import * +from processing_py import * bottom = None orange = None diff --git a/crates/processing_pyo3/examples/Basics/Math/additive_wave.py b/crates/processing_pyo3/examples/Basics/Math/additive_wave.py index b4ec988a..baafdec7 100644 --- a/crates/processing_pyo3/examples/Basics/Math/additive_wave.py +++ b/crates/processing_pyo3/examples/Basics/Math/additive_wave.py @@ -2,7 +2,7 @@ # by Daniel Shiffman. # # Create a more complex wave by adding two waves together. -from mewnala import * +from processing_py import * xspacing = 8 # How far apart should each horizontal location be spaced w = 0 # Width of entire wave diff --git a/crates/processing_pyo3/examples/Basics/Math/arctangent.py b/crates/processing_pyo3/examples/Basics/Math/arctangent.py index 3c086bda..0ba7dc4b 100644 --- a/crates/processing_pyo3/examples/Basics/Math/arctangent.py +++ b/crates/processing_pyo3/examples/Basics/Math/arctangent.py @@ -3,7 +3,7 @@ # Move the mouse to change the direction of the eyes. # The atan2() function computes the angle from each eye # to the cursor. -from mewnala import * +from processing_py import * e1 = None e2 = None diff --git a/crates/processing_pyo3/examples/Basics/Math/distance_1d.py b/crates/processing_pyo3/examples/Basics/Math/distance_1d.py index 66244ad8..53c01b11 100644 --- a/crates/processing_pyo3/examples/Basics/Math/distance_1d.py +++ b/crates/processing_pyo3/examples/Basics/Math/distance_1d.py @@ -2,7 +2,7 @@ # # Move the mouse left and right to control the # speed and direction of the moving shapes. -from mewnala import * +from processing_py import * xpos1 = 0.0 xpos2 = 0.0 diff --git a/crates/processing_pyo3/examples/Basics/Math/distance_2d.py b/crates/processing_pyo3/examples/Basics/Math/distance_2d.py index aea8a46b..91f779ea 100644 --- a/crates/processing_pyo3/examples/Basics/Math/distance_2d.py +++ b/crates/processing_pyo3/examples/Basics/Math/distance_2d.py @@ -3,7 +3,7 @@ # Move the mouse across the image to obscure and reveal the matrix. # Measures the distance from the mouse to each square and sets the # size proportionally. -from mewnala import * +from processing_py import * max_distance = 0.0 diff --git a/crates/processing_pyo3/examples/Basics/Math/double_random.py b/crates/processing_pyo3/examples/Basics/Math/double_random.py index 75a78878..f6a3ecc5 100644 --- a/crates/processing_pyo3/examples/Basics/Math/double_random.py +++ b/crates/processing_pyo3/examples/Basics/Math/double_random.py @@ -3,7 +3,7 @@ # # Using two random() calls and the point() function # to create an irregular sawtooth line. -from mewnala import * +from processing_py import * total_pts = 300 steps = total_pts + 1 diff --git a/crates/processing_pyo3/examples/Basics/Math/graphing_2d_equation.py b/crates/processing_pyo3/examples/Basics/Math/graphing_2d_equation.py index 5f5d89a9..35d557c2 100644 --- a/crates/processing_pyo3/examples/Basics/Math/graphing_2d_equation.py +++ b/crates/processing_pyo3/examples/Basics/Math/graphing_2d_equation.py @@ -4,7 +4,7 @@ # Graphics the following equation: # sin(n*cos(r) + 5*theta) # where n is a function of horizontal mouse location. -from mewnala import * +from processing_py import * def setup(): diff --git a/crates/processing_pyo3/examples/Basics/Math/increment_decrement.py b/crates/processing_pyo3/examples/Basics/Math/increment_decrement.py index 1eae3529..398e0c70 100644 --- a/crates/processing_pyo3/examples/Basics/Math/increment_decrement.py +++ b/crates/processing_pyo3/examples/Basics/Math/increment_decrement.py @@ -2,7 +2,7 @@ # # Writing "a++" is equivalent to "a = a + 1". # Writing "a--" is equivalent to "a = a - 1". -from mewnala import * +from processing_py import * a = 0 b = 0 diff --git a/crates/processing_pyo3/examples/Basics/Math/interpolate.py b/crates/processing_pyo3/examples/Basics/Math/interpolate.py index 987d1e85..36d3b8ea 100644 --- a/crates/processing_pyo3/examples/Basics/Math/interpolate.py +++ b/crates/processing_pyo3/examples/Basics/Math/interpolate.py @@ -4,7 +4,7 @@ # Between drawing each frame of the animation, the ellipse moves # part of the distance (0.05) from its current position toward # the cursor using the lerp() function. -from mewnala import * +from processing_py import * x = 0.0 y = 0.0 diff --git a/crates/processing_pyo3/examples/Basics/Math/map.py b/crates/processing_pyo3/examples/Basics/Math/map.py index cba5d0cd..80d91f8e 100644 --- a/crates/processing_pyo3/examples/Basics/Math/map.py +++ b/crates/processing_pyo3/examples/Basics/Math/map.py @@ -5,7 +5,7 @@ # numbers from the mouse position to control the size or color of a shape. # In this example, the mouse's x-coordinate (numbers between 0 and 360) are scaled to # new numbers to define the color and size of a circle. -from mewnala import * +from processing_py import * def setup(): diff --git a/crates/processing_pyo3/examples/Basics/Math/noise_1d.py b/crates/processing_pyo3/examples/Basics/Math/noise_1d.py index ad041541..67b281d7 100644 --- a/crates/processing_pyo3/examples/Basics/Math/noise_1d.py +++ b/crates/processing_pyo3/examples/Basics/Math/noise_1d.py @@ -1,7 +1,7 @@ # Noise1D. # # Using 1D Perlin Noise to assign location. -from mewnala import * +from processing_py import * xoff = 0.0 xincrement = 0.01 diff --git a/crates/processing_pyo3/examples/Basics/Math/noise_2d.py b/crates/processing_pyo3/examples/Basics/Math/noise_2d.py index 7cf33ef0..3f39eb8c 100644 --- a/crates/processing_pyo3/examples/Basics/Math/noise_2d.py +++ b/crates/processing_pyo3/examples/Basics/Math/noise_2d.py @@ -2,7 +2,7 @@ # by Daniel Shiffman. # # Using 2D noise to create simple texture. -from mewnala import * +from processing_py import * increment = 0.02 diff --git a/crates/processing_pyo3/examples/Basics/Math/noise_3d.py b/crates/processing_pyo3/examples/Basics/Math/noise_3d.py index b789525b..ffde3ce2 100644 --- a/crates/processing_pyo3/examples/Basics/Math/noise_3d.py +++ b/crates/processing_pyo3/examples/Basics/Math/noise_3d.py @@ -2,7 +2,7 @@ # # Using 3D noise to create simple animated texture. # Here, the third dimension ('z') is treated as time. -from mewnala import * +from processing_py import * increment = 0.01 # The noise function's 3rd argument, a global variable that increments once per cycle diff --git a/crates/processing_pyo3/examples/Basics/Math/noise_wave.py b/crates/processing_pyo3/examples/Basics/Math/noise_wave.py index 89449087..cf8ac22d 100644 --- a/crates/processing_pyo3/examples/Basics/Math/noise_wave.py +++ b/crates/processing_pyo3/examples/Basics/Math/noise_wave.py @@ -2,7 +2,7 @@ # by Daniel Shiffman. # # Using Perlin Noise to generate a wave-like pattern. -from mewnala import * +from processing_py import * yoff = 0.0 # 2nd dimension of perlin noise diff --git a/crates/processing_pyo3/examples/Basics/Math/operator_precedence.py b/crates/processing_pyo3/examples/Basics/Math/operator_precedence.py index 977b2d04..301621a5 100644 --- a/crates/processing_pyo3/examples/Basics/Math/operator_precedence.py +++ b/crates/processing_pyo3/examples/Basics/Math/operator_precedence.py @@ -9,7 +9,7 @@ # the program, it is recommended to write the expression as # 4+(2*8). The order of evaluation can be controlled through # adding parenthesis in the code. -from mewnala import * +from processing_py import * # The highest precedence is at the top of the list and # the lowest is at the bottom. diff --git a/crates/processing_pyo3/examples/Basics/Math/polar_to_cartesian.py b/crates/processing_pyo3/examples/Basics/Math/polar_to_cartesian.py index 197bd7ff..d786d12c 100644 --- a/crates/processing_pyo3/examples/Basics/Math/polar_to_cartesian.py +++ b/crates/processing_pyo3/examples/Basics/Math/polar_to_cartesian.py @@ -3,7 +3,7 @@ # # Convert a polar coordinate (r,theta) to cartesian (x,y). # The calculations are x=r*cos(theta) and y=r*sin(theta). -from mewnala import * +from processing_py import * r = 0.0 diff --git a/crates/processing_pyo3/examples/Basics/Math/random_gaussian.py b/crates/processing_pyo3/examples/Basics/Math/random_gaussian.py index d605961f..b21e8254 100644 --- a/crates/processing_pyo3/examples/Basics/Math/random_gaussian.py +++ b/crates/processing_pyo3/examples/Basics/Math/random_gaussian.py @@ -1,7 +1,7 @@ # Random Gaussian. # # This sketch draws ellipses with x and y locations tied to a gaussian distribution of random numbers. -from mewnala import * +from processing_py import * def setup(): diff --git a/crates/processing_pyo3/examples/Basics/Math/random_sketch.py b/crates/processing_pyo3/examples/Basics/Math/random_sketch.py index a9933439..267e720c 100644 --- a/crates/processing_pyo3/examples/Basics/Math/random_sketch.py +++ b/crates/processing_pyo3/examples/Basics/Math/random_sketch.py @@ -2,7 +2,7 @@ # # Random numbers create the basis of this image. # Each time the program is loaded the result is different. -from mewnala import * +from processing_py import * def setup(): diff --git a/crates/processing_pyo3/examples/Basics/Math/sine.py b/crates/processing_pyo3/examples/Basics/Math/sine.py index a78e65f3..bf0b92a5 100644 --- a/crates/processing_pyo3/examples/Basics/Math/sine.py +++ b/crates/processing_pyo3/examples/Basics/Math/sine.py @@ -1,7 +1,7 @@ # Sine. # # Smoothly scaling size with the sin() function. -from mewnala import * +from processing_py import * diameter = 0.0 angle = 0 diff --git a/crates/processing_pyo3/examples/Basics/Math/sine_cosine.py b/crates/processing_pyo3/examples/Basics/Math/sine_cosine.py index 61fd96f4..228d937b 100644 --- a/crates/processing_pyo3/examples/Basics/Math/sine_cosine.py +++ b/crates/processing_pyo3/examples/Basics/Math/sine_cosine.py @@ -4,7 +4,7 @@ # Numbers between 0 and PI*2 (TWO_PI which angles roughly 6.28) # are put into these functions and numbers between -1 and 1 are # returned. These values are then scaled to produce larger movements. -from mewnala import * +from processing_py import * x1 = 0.0 x2 = 0.0 diff --git a/crates/processing_pyo3/examples/Basics/Math/sine_wave.py b/crates/processing_pyo3/examples/Basics/Math/sine_wave.py index 82d659d0..83e347a5 100644 --- a/crates/processing_pyo3/examples/Basics/Math/sine_wave.py +++ b/crates/processing_pyo3/examples/Basics/Math/sine_wave.py @@ -2,7 +2,7 @@ # by Daniel Shiffman. # # Render a simple sine wave. -from mewnala import * +from processing_py import * xspacing = 16 # How far apart should each horizontal location be spaced w = 0 # Width of entire wave diff --git a/crates/processing_pyo3/examples/Basics/Objects/composite_objects.py b/crates/processing_pyo3/examples/Basics/Objects/composite_objects.py index 51c04d7e..f6fe7c96 100644 --- a/crates/processing_pyo3/examples/Basics/Objects/composite_objects.py +++ b/crates/processing_pyo3/examples/Basics/Objects/composite_objects.py @@ -3,7 +3,7 @@ # An object can include several other objects. Creating such composite objects # is a good way to use the principles of modularity and build higher levels of # abstraction within a program. -from mewnala import * +from processing_py import * er1 = None er2 = None diff --git a/crates/processing_pyo3/examples/Basics/Objects/inheritance.py b/crates/processing_pyo3/examples/Basics/Objects/inheritance.py index 6900b952..2236d9c8 100644 --- a/crates/processing_pyo3/examples/Basics/Objects/inheritance.py +++ b/crates/processing_pyo3/examples/Basics/Objects/inheritance.py @@ -4,7 +4,7 @@ # programming terminology, one class can inherit fields and methods from another. # An object that inherits from another is called a subclass, and the object it # inherits from is called a superclass. A subclass extends the superclass. -from mewnala import * +from processing_py import * spots = None arm = None diff --git a/crates/processing_pyo3/examples/Basics/Objects/multiple_constructors.py b/crates/processing_pyo3/examples/Basics/Objects/multiple_constructors.py index 5e867d08..17bb0099 100644 --- a/crates/processing_pyo3/examples/Basics/Objects/multiple_constructors.py +++ b/crates/processing_pyo3/examples/Basics/Objects/multiple_constructors.py @@ -4,7 +4,7 @@ # Sometimes it's beneficial to specify every aspect of an object's data by assigning # parameters to the fields, but other times it might be appropriate to define only # one or a few. -from mewnala import * +from processing_py import * sp1 = None sp2 = None diff --git a/crates/processing_pyo3/examples/Basics/Objects/objects.py b/crates/processing_pyo3/examples/Basics/Objects/objects.py index dc017f74..1a0d4404 100644 --- a/crates/processing_pyo3/examples/Basics/Objects/objects.py +++ b/crates/processing_pyo3/examples/Basics/Objects/objects.py @@ -3,7 +3,7 @@ # # Move the cursor across the image to change the speed and positions # of the geometry. The class MRect defines a group of lines. -from mewnala import * +from processing_py import * r1 = None r2 = None diff --git a/crates/processing_pyo3/examples/Basics/Shape/disable_style.py b/crates/processing_pyo3/examples/Basics/Shape/disable_style.py index 27dabd5d..9507b6b3 100644 --- a/crates/processing_pyo3/examples/Basics/Shape/disable_style.py +++ b/crates/processing_pyo3/examples/Basics/Shape/disable_style.py @@ -6,7 +6,7 @@ # method of Shape turns off this information so functions like # stroke() and fill() change the SVGs color. The enable_style() # method turns the file's original styles back on. -from mewnala import * +from processing_py import * bot = None diff --git a/crates/processing_pyo3/examples/Basics/Shape/get_child.py b/crates/processing_pyo3/examples/Basics/Shape/get_child.py index 3e59d450..2c6253e7 100644 --- a/crates/processing_pyo3/examples/Basics/Shape/get_child.py +++ b/crates/processing_pyo3/examples/Basics/Shape/get_child.py @@ -5,7 +5,7 @@ # that can be used to extract it from the "parent" file. # This example loads a map of the United States and creates # two new Shape objects by extracting the data from two states. -from mewnala import * +from processing_py import * usa = None michigan = None diff --git a/crates/processing_pyo3/examples/Basics/Shape/load_display_obj.py b/crates/processing_pyo3/examples/Basics/Shape/load_display_obj.py index 3bc5cccb..4d8b5820 100644 --- a/crates/processing_pyo3/examples/Basics/Shape/load_display_obj.py +++ b/crates/processing_pyo3/examples/Basics/Shape/load_display_obj.py @@ -3,7 +3,7 @@ # The load_model() command is used to read OBJ (Object) files into a # sketch. This example loads an OBJ file of a rocket and displays it # to the screen. -from mewnala import * +from processing_py import * rocket = None ry = 0.0 diff --git a/crates/processing_pyo3/examples/Basics/Shape/load_display_svg.py b/crates/processing_pyo3/examples/Basics/Shape/load_display_svg.py index c571a65d..966cb7b3 100644 --- a/crates/processing_pyo3/examples/Basics/Shape/load_display_svg.py +++ b/crates/processing_pyo3/examples/Basics/Shape/load_display_svg.py @@ -4,7 +4,7 @@ # The load_shape() command is used to read simple SVG (Scalable Vector Graphics) # files into a sketch. This example loads an SVG file of a monster robot face # and displays it to the screen. -from mewnala import * +from processing_py import * bot = None diff --git a/crates/processing_pyo3/examples/Basics/Shape/scale_shape.py b/crates/processing_pyo3/examples/Basics/Shape/scale_shape.py index 875ac5a7..27c86f55 100644 --- a/crates/processing_pyo3/examples/Basics/Shape/scale_shape.py +++ b/crates/processing_pyo3/examples/Basics/Shape/scale_shape.py @@ -4,7 +4,7 @@ # Move the mouse left and right to zoom the SVG file. # This shows how, unlike an imported image, the lines # remain smooth at any size. -from mewnala import * +from processing_py import * bot = None diff --git a/crates/processing_pyo3/examples/Basics/Shape/shape_vertices.py b/crates/processing_pyo3/examples/Basics/Shape/shape_vertices.py index aaffbd62..489145b9 100644 --- a/crates/processing_pyo3/examples/Basics/Shape/shape_vertices.py +++ b/crates/processing_pyo3/examples/Basics/Shape/shape_vertices.py @@ -7,7 +7,7 @@ # # You should iterate through the children and then # iterate through their vertices. -from mewnala import * +from processing_py import * # The shape uk = None diff --git a/crates/processing_pyo3/examples/Basics/Structure/coordinates.py b/crates/processing_pyo3/examples/Basics/Structure/coordinates.py index 76761b3c..6878ebf6 100644 --- a/crates/processing_pyo3/examples/Basics/Structure/coordinates.py +++ b/crates/processing_pyo3/examples/Basics/Structure/coordinates.py @@ -6,7 +6,7 @@ # The origin (0, 0) is the coordinate is in the upper left # of the window and the coordinate in the lower right is # (width-1, height-1). -from mewnala import * +from processing_py import * # Sets the screen to be 640 pixels wide and 360 pixels high size(640, 360) diff --git a/crates/processing_pyo3/examples/Basics/Structure/create_graphics.py b/crates/processing_pyo3/examples/Basics/Structure/create_graphics.py index d31d0bf1..17775535 100644 --- a/crates/processing_pyo3/examples/Basics/Structure/create_graphics.py +++ b/crates/processing_pyo3/examples/Basics/Structure/create_graphics.py @@ -6,7 +6,7 @@ # end_draw() is necessary to finish. Use this if you need to draw # into an off-screen graphics buffer or to maintain two # drawing surfaces with different properties. -from mewnala import * +from processing_py import * pg = None diff --git a/crates/processing_pyo3/examples/Basics/Structure/functions.py b/crates/processing_pyo3/examples/Basics/Structure/functions.py index 107b474c..79ed3747 100644 --- a/crates/processing_pyo3/examples/Basics/Structure/functions.py +++ b/crates/processing_pyo3/examples/Basics/Structure/functions.py @@ -3,7 +3,7 @@ # The draw_target() function makes it easy to draw many distinct targets. # Each call to draw_target() specifies the position, size, and number of # rings for each target. -from mewnala import * +from processing_py import * def setup(): diff --git a/crates/processing_pyo3/examples/Basics/Structure/loop.py b/crates/processing_pyo3/examples/Basics/Structure/loop.py index f3edb6c6..3c02320c 100644 --- a/crates/processing_pyo3/examples/Basics/Structure/loop.py +++ b/crates/processing_pyo3/examples/Basics/Structure/loop.py @@ -4,7 +4,7 @@ # is only run once. In this example, click the mouse # to run the loop() function to cause the draw() the # run continuously. -from mewnala import * +from processing_py import * y = 180 diff --git a/crates/processing_pyo3/examples/Basics/Structure/no_loop.py b/crates/processing_pyo3/examples/Basics/Structure/no_loop.py index 94d77b32..abd26c0b 100644 --- a/crates/processing_pyo3/examples/Basics/Structure/no_loop.py +++ b/crates/processing_pyo3/examples/Basics/Structure/no_loop.py @@ -3,7 +3,7 @@ # The no_loop() function causes draw() to only run once. # Without calling no_loop(), the code inside draw() is # run continually. -from mewnala import * +from processing_py import * y = 180 diff --git a/crates/processing_pyo3/examples/Basics/Structure/recursion.py b/crates/processing_pyo3/examples/Basics/Structure/recursion.py index 5d58f275..9038c088 100644 --- a/crates/processing_pyo3/examples/Basics/Structure/recursion.py +++ b/crates/processing_pyo3/examples/Basics/Structure/recursion.py @@ -3,7 +3,7 @@ # A demonstration of recursion, which means functions call themselves. # Notice how the draw_circle() function calls itself at the end of its block. # It continues to do this until the variable "level" is equal to 1. -from mewnala import * +from processing_py import * def setup(): diff --git a/crates/processing_pyo3/examples/Basics/Structure/redraw.py b/crates/processing_pyo3/examples/Basics/Structure/redraw.py index cd425fa3..f422278e 100644 --- a/crates/processing_pyo3/examples/Basics/Structure/redraw.py +++ b/crates/processing_pyo3/examples/Basics/Structure/redraw.py @@ -3,7 +3,7 @@ # The redraw() function makes draw() execute once. # In this example, draw() is executed once every time # the mouse is clicked. -from mewnala import * +from processing_py import * y = 0.0 diff --git a/crates/processing_pyo3/examples/Basics/Structure/setup_draw.py b/crates/processing_pyo3/examples/Basics/Structure/setup_draw.py index 22e680cd..239ab460 100644 --- a/crates/processing_pyo3/examples/Basics/Structure/setup_draw.py +++ b/crates/processing_pyo3/examples/Basics/Structure/setup_draw.py @@ -3,7 +3,7 @@ # The code inside the draw() function runs continuously # from top to bottom until the program is stopped. The # code in setup() is run once when the program starts. -from mewnala import * +from processing_py import * y = 180 diff --git a/crates/processing_pyo3/examples/Basics/Structure/statements_comments.py b/crates/processing_pyo3/examples/Basics/Structure/statements_comments.py index 1e569a3c..c8bf50d3 100644 --- a/crates/processing_pyo3/examples/Basics/Structure/statements_comments.py +++ b/crates/processing_pyo3/examples/Basics/Structure/statements_comments.py @@ -4,7 +4,7 @@ # Each statement goes on its own line. # Comments are used for making notes to help people better understand programs. # A comment begins with a hash sign ("#"). -from mewnala import * +from processing_py import * # The size function is a statement that tells the computer # how large to make the window. diff --git a/crates/processing_pyo3/examples/Basics/Structure/width_height.py b/crates/processing_pyo3/examples/Basics/Structure/width_height.py index 3ceb8b75..81c5f2e8 100644 --- a/crates/processing_pyo3/examples/Basics/Structure/width_height.py +++ b/crates/processing_pyo3/examples/Basics/Structure/width_height.py @@ -2,7 +2,7 @@ # # The 'width' and 'height' variables contain the width and height # of the display window as defined in the size() function. -from mewnala import * +from processing_py import * def setup(): diff --git a/crates/processing_pyo3/examples/Basics/Transform/arm.py b/crates/processing_pyo3/examples/Basics/Transform/arm.py index a24f7c78..21a5ffba 100644 --- a/crates/processing_pyo3/examples/Basics/Transform/arm.py +++ b/crates/processing_pyo3/examples/Basics/Transform/arm.py @@ -4,7 +4,7 @@ # mouse_y position. The transformations applied to the first segment # are also applied to the second segment because they are inside # the same push_matrix() and pop_matrix() group. -from mewnala import * +from processing_py import * x = 0 y = 0 diff --git a/crates/processing_pyo3/examples/Basics/Transform/rotate.py b/crates/processing_pyo3/examples/Basics/Transform/rotate.py index 18acd9c1..f9008a74 100644 --- a/crates/processing_pyo3/examples/Basics/Transform/rotate.py +++ b/crates/processing_pyo3/examples/Basics/Transform/rotate.py @@ -6,7 +6,7 @@ # think about angles as degrees (0-360), you can use the radians() # method to convert your values. For example: scale(radians(90)) # is identical to the statement scale(PI/2). -from mewnala import * +from processing_py import * from datetime import datetime angle = 0.0 diff --git a/crates/processing_pyo3/examples/Basics/Transform/rotate_push_pop.py b/crates/processing_pyo3/examples/Basics/Transform/rotate_push_pop.py index 6c3b2a48..326b153a 100644 --- a/crates/processing_pyo3/examples/Basics/Transform/rotate_push_pop.py +++ b/crates/processing_pyo3/examples/Basics/Transform/rotate_push_pop.py @@ -3,7 +3,7 @@ # The push() and pop() functions allow for more control over transformations. # The push function saves the current coordinate system to the stack # and pop() restores the prior coordinate system. -from mewnala import * +from processing_py import * a = 0.0 # Angle of rotation offset = PI / 24.0 # Angle offset between boxes diff --git a/crates/processing_pyo3/examples/Basics/Transform/rotate_xy.py b/crates/processing_pyo3/examples/Basics/Transform/rotate_xy.py index 7666e162..6f7dd52f 100644 --- a/crates/processing_pyo3/examples/Basics/Transform/rotate_xy.py +++ b/crates/processing_pyo3/examples/Basics/Transform/rotate_xy.py @@ -4,7 +4,7 @@ # Transformation functions such as rotate() are additive. # Successively calling rotate(1.0) and rotate(2.0) # is equivalent to calling rotate(3.0). -from mewnala import * +from processing_py import * a = 0.0 r_size = 0 # rectangle size diff --git a/crates/processing_pyo3/examples/Basics/Transform/scale.py b/crates/processing_pyo3/examples/Basics/Transform/scale.py index eec12ef9..b22475a6 100644 --- a/crates/processing_pyo3/examples/Basics/Transform/scale.py +++ b/crates/processing_pyo3/examples/Basics/Transform/scale.py @@ -5,7 +5,7 @@ # as decimal percentages. For example, the method call scale(2.0) # will increase the dimension of the shape by 200 percent. # Objects always scale from the origin. -from mewnala import * +from processing_py import * a = 0.0 s = 0.0 diff --git a/crates/processing_pyo3/examples/Basics/Transform/translate.py b/crates/processing_pyo3/examples/Basics/Transform/translate.py index 88773deb..5b8df419 100644 --- a/crates/processing_pyo3/examples/Basics/Transform/translate.py +++ b/crates/processing_pyo3/examples/Basics/Transform/translate.py @@ -4,7 +4,7 @@ # to any location within the window. The first parameter # sets the x-axis offset and the second parameter sets the # y-axis offset. -from mewnala import * +from processing_py import * x = 0 y = 0 diff --git a/crates/processing_pyo3/examples/Basics/Typography/letters.py b/crates/processing_pyo3/examples/Basics/Typography/letters.py index 722c0c83..29164d00 100644 --- a/crates/processing_pyo3/examples/Basics/Typography/letters.py +++ b/crates/processing_pyo3/examples/Basics/Typography/letters.py @@ -2,7 +2,7 @@ # # Draws letters to the screen. This requires loading a font, # setting the font, and then drawing the letters. -from mewnala import * +from processing_py import * f = None diff --git a/crates/processing_pyo3/examples/Basics/Typography/text_rotation.py b/crates/processing_pyo3/examples/Basics/Typography/text_rotation.py index 9764e124..d1335a71 100644 --- a/crates/processing_pyo3/examples/Basics/Typography/text_rotation.py +++ b/crates/processing_pyo3/examples/Basics/Typography/text_rotation.py @@ -1,7 +1,7 @@ # Text Rotation. # # Draws letters to the screen and rotates them at different angles. -from mewnala import * +from processing_py import * f = None angle_rotate = 0.0 diff --git a/crates/processing_pyo3/examples/Basics/Typography/words.py b/crates/processing_pyo3/examples/Basics/Typography/words.py index a598db66..3adcdbbd 100644 --- a/crates/processing_pyo3/examples/Basics/Typography/words.py +++ b/crates/processing_pyo3/examples/Basics/Typography/words.py @@ -3,7 +3,7 @@ # The text() function is used for writing words to the screen. # The letters can be aligned left, center, or right with the # text_align() function. -from mewnala import * +from processing_py import * f = None diff --git a/crates/processing_pyo3/examples/Basics/Web/embedded_links.py b/crates/processing_pyo3/examples/Basics/Web/embedded_links.py index 0c1012ae..79d0262f 100644 --- a/crates/processing_pyo3/examples/Basics/Web/embedded_links.py +++ b/crates/processing_pyo3/examples/Basics/Web/embedded_links.py @@ -1,7 +1,7 @@ # Loading URLs. # # Click on the button to open a URL in a browser. -from mewnala import * +from processing_py import * over_button = False diff --git a/crates/processing_pyo3/examples/Basics/Web/loading_images.py b/crates/processing_pyo3/examples/Basics/Web/loading_images.py index 511e2aa5..58ef6eac 100644 --- a/crates/processing_pyo3/examples/Basics/Web/loading_images.py +++ b/crates/processing_pyo3/examples/Basics/Web/loading_images.py @@ -1,7 +1,7 @@ # Loading Images. # # Processing applications can load images from the network. -from mewnala import * +from processing_py import * img = None diff --git a/crates/processing_pyo3/examples/Demos/Graphics/depth_sort.py b/crates/processing_pyo3/examples/Demos/Graphics/depth_sort.py index 4a11021b..17fd1a65 100644 --- a/crates/processing_pyo3/examples/Demos/Graphics/depth_sort.py +++ b/crates/processing_pyo3/examples/Demos/Graphics/depth_sort.py @@ -3,7 +3,7 @@ # # Processing sorts the translucent triangles back to front while the # mouse is not pressed (hint(ENABLE_DEPTH_SORT)); hints have no equivalent here. -from mewnala import * +from processing_py import * tris = [] # one triangle per hue diff --git a/crates/processing_pyo3/examples/Demos/Graphics/mesh_tweening.py b/crates/processing_pyo3/examples/Demos/Graphics/mesh_tweening.py index 905e852d..bad0a174 100644 --- a/crates/processing_pyo3/examples/Demos/Graphics/mesh_tweening.py +++ b/crates/processing_pyo3/examples/Demos/Graphics/mesh_tweening.py @@ -6,7 +6,7 @@ # # Every vertex carries a second position ("tweened") and the vertex shader # blends between the two with the mouse. -from mewnala import * +from processing_py import * sh = None mat = None diff --git a/crates/processing_pyo3/examples/Demos/Graphics/multiple_windows.py b/crates/processing_pyo3/examples/Demos/Graphics/multiple_windows.py index d0d8b629..517c757e 100644 --- a/crates/processing_pyo3/examples/Demos/Graphics/multiple_windows.py +++ b/crates/processing_pyo3/examples/Demos/Graphics/multiple_windows.py @@ -3,7 +3,7 @@ # # Demonstration of a multiple window sketch, including resource # sharing across windows. Press a key to open the other windows. -from mewnala import * +from processing_py import * child_a = None child_b = None diff --git a/crates/processing_pyo3/examples/Demos/Graphics/particles.py b/crates/processing_pyo3/examples/Demos/Graphics/particles.py index abfe0ab8..9211c83f 100644 --- a/crates/processing_pyo3/examples/Demos/Graphics/particles.py +++ b/crates/processing_pyo3/examples/Demos/Graphics/particles.py @@ -3,7 +3,7 @@ # Each particle is a textured quad (the sprite image) that fades # out over its lifespan; dead particles are reborn at the mouse. # Ported 1:1 on the CPU: the quads are drawn with image() and tint(). -from mewnala import * +from processing_py import * ps = None sprite = None diff --git a/crates/processing_pyo3/examples/Demos/Graphics/patch.py b/crates/processing_pyo3/examples/Demos/Graphics/patch.py index a6fada8c..e5731471 100644 --- a/crates/processing_pyo3/examples/Demos/Graphics/patch.py +++ b/crates/processing_pyo3/examples/Demos/Graphics/patch.py @@ -5,7 +5,7 @@ # Original code: http://paulbourke.net/geometry/bezier/ # # Press space to build a new random patch. -from mewnala import * +from processing_py import * ni = 4 nj = 5 diff --git a/crates/processing_pyo3/examples/Demos/Graphics/planets.py b/crates/processing_pyo3/examples/Demos/Graphics/planets.py index e8a1177c..17340ba0 100644 --- a/crates/processing_pyo3/examples/Demos/Graphics/planets.py +++ b/crates/processing_pyo3/examples/Demos/Graphics/planets.py @@ -2,7 +2,7 @@ # # Sun and mercury textures from http://planetpixelemporium.com # Star field picture from http://www.galacticimages.com/ -from mewnala import * +from processing_py import * starfield = None diff --git a/crates/processing_pyo3/examples/Demos/Graphics/ribbons.py b/crates/processing_pyo3/examples/Demos/Graphics/ribbons.py index 9e354b86..7008f619 100644 --- a/crates/processing_pyo3/examples/Demos/Graphics/ribbons.py +++ b/crates/processing_pyo3/examples/Demos/Graphics/ribbons.py @@ -4,7 +4,7 @@ # This sketch loads 3D atomic coordinates of a protein molecule # from a file in PDB format (http://www.pdb.org/) and displays # the structure using a ribbon representation. -from mewnala import * +from processing_py import * import os pdb_file = "data/4HHB.pdb" # PDB file to read diff --git a/crates/processing_pyo3/examples/Demos/Graphics/rotating_arcs.py b/crates/processing_pyo3/examples/Demos/Graphics/rotating_arcs.py index 3bf433ae..348a2fd1 100644 --- a/crates/processing_pyo3/examples/Demos/Graphics/rotating_arcs.py +++ b/crates/processing_pyo3/examples/Demos/Graphics/rotating_arcs.py @@ -3,7 +3,7 @@ # # Using sin/cos, blends colors, and draws a series of # rotating arcs on the screen. -from mewnala import * +from processing_py import * COUNT = 150 diff --git a/crates/processing_pyo3/examples/Demos/Graphics/trefoil.py b/crates/processing_pyo3/examples/Demos/Graphics/trefoil.py index efbb181e..2d38ede9 100644 --- a/crates/processing_pyo3/examples/Demos/Graphics/trefoil.py +++ b/crates/processing_pyo3/examples/Demos/Graphics/trefoil.py @@ -2,7 +2,7 @@ # # A parametric surface is textured procedurally # by drawing on an offscreen Graphics surface. -from mewnala import * +from processing_py import * pg = None trefoil = None diff --git a/crates/processing_pyo3/examples/Demos/Graphics/wiggling.py b/crates/processing_pyo3/examples/Demos/Graphics/wiggling.py index 83d2cd51..b26899d5 100644 --- a/crates/processing_pyo3/examples/Demos/Graphics/wiggling.py +++ b/crates/processing_pyo3/examples/Demos/Graphics/wiggling.py @@ -2,7 +2,7 @@ # # Press 'w' to start wiggling, space to restore # original positions. Press '1', '2' or '3' to change the stroke weight. -from mewnala import * +from processing_py import * cube = [] # six faces, each a list of [x, y, z] vertices cube_size = 320 diff --git a/crates/processing_pyo3/examples/Demos/Graphics/yellowtail.py b/crates/processing_pyo3/examples/Demos/Graphics/yellowtail.py index 0f74b73c..24b61e1a 100644 --- a/crates/processing_pyo3/examples/Demos/Graphics/yellowtail.py +++ b/crates/processing_pyo3/examples/Demos/Graphics/yellowtail.py @@ -9,7 +9,7 @@ # line's shape and quality of movement. Each line repeats according to its # own period, producing an ever-changing and responsive display of lively, # worm-like textures. -from mewnala import * +from processing_py import * gesture_array = [] n_gestures = 36 # Number of gestures diff --git a/crates/processing_pyo3/examples/Demos/Performance/cubic_grid_immediate.py b/crates/processing_pyo3/examples/Demos/Performance/cubic_grid_immediate.py index ece45b34..3c13d964 100644 --- a/crates/processing_pyo3/examples/Demos/Performance/cubic_grid_immediate.py +++ b/crates/processing_pyo3/examples/Demos/Performance/cubic_grid_immediate.py @@ -3,7 +3,7 @@ # # 3D translucent colored grid uses nested push_matrix() # and pop_matrix() functions. -from mewnala import * +from processing_py import * box_size = 20 margin = box_size * 2 diff --git a/crates/processing_pyo3/examples/Demos/Performance/cubic_grid_retained.py b/crates/processing_pyo3/examples/Demos/Performance/cubic_grid_retained.py index a15d0191..5d255f25 100644 --- a/crates/processing_pyo3/examples/Demos/Performance/cubic_grid_retained.py +++ b/crates/processing_pyo3/examples/Demos/Performance/cubic_grid_retained.py @@ -2,7 +2,7 @@ # # The same translucent grid as CubicGridImmediate, but all the boxes are # built once into a single geometry and drawn with one call per frame. -from mewnala import * +from processing_py import * box_size = 20 margin = box_size * 2 diff --git a/crates/processing_pyo3/examples/Demos/Performance/dynamic_particles_immediate.py b/crates/processing_pyo3/examples/Demos/Performance/dynamic_particles_immediate.py index 4922086f..030e0d22 100644 --- a/crates/processing_pyo3/examples/Demos/Performance/dynamic_particles_immediate.py +++ b/crates/processing_pyo3/examples/Demos/Performance/dynamic_particles_immediate.py @@ -2,7 +2,7 @@ # # 10000 fading sprites emitted from the mouse, each drawn with its own # tinted image() call every frame. -from mewnala import * +from processing_py import * sprite = None diff --git a/crates/processing_pyo3/examples/Demos/Performance/dynamic_particles_retained.py b/crates/processing_pyo3/examples/Demos/Performance/dynamic_particles_retained.py index 4dbc702f..d92f85a6 100644 --- a/crates/processing_pyo3/examples/Demos/Performance/dynamic_particles_retained.py +++ b/crates/processing_pyo3/examples/Demos/Performance/dynamic_particles_retained.py @@ -3,7 +3,7 @@ # 10000 fading sprites emitted from the mouse. The particles live in a GPU # particle system (the retained equivalent of the PShape group): the CPU # updates their positions and tints and uploads them once per frame. -from mewnala import * +from processing_py import * particle_system = None quad = None diff --git a/crates/processing_pyo3/examples/Demos/Performance/esfera.py b/crates/processing_pyo3/examples/Demos/Performance/esfera.py index 887e74a3..3e839c13 100644 --- a/crates/processing_pyo3/examples/Demos/Performance/esfera.py +++ b/crates/processing_pyo3/examples/Demos/Performance/esfera.py @@ -3,7 +3,7 @@ # # Distribucion aleatoria uniforme sobre la superficie de una esfera. # The hairs are kept in one LINES geometry whose vertices are moved every frame. -from mewnala import * +from processing_py import * cuantos = 16000 lista = [] diff --git a/crates/processing_pyo3/examples/Demos/Performance/line_rendering.py b/crates/processing_pyo3/examples/Demos/Performance/line_rendering.py index 7ed06871..ed9cd0b0 100644 --- a/crates/processing_pyo3/examples/Demos/Performance/line_rendering.py +++ b/crates/processing_pyo3/examples/Demos/Performance/line_rendering.py @@ -1,7 +1,7 @@ # Line Rendering # # Draws 50000 translucent random lines per frame. -from mewnala import * +from processing_py import * def setup(): diff --git a/crates/processing_pyo3/examples/Demos/Performance/quad_rendering.py b/crates/processing_pyo3/examples/Demos/Performance/quad_rendering.py index 69d43d6c..1bf4ebb3 100644 --- a/crates/processing_pyo3/examples/Demos/Performance/quad_rendering.py +++ b/crates/processing_pyo3/examples/Demos/Performance/quad_rendering.py @@ -1,7 +1,7 @@ # Quad Rendering # # Draws 50000 nearly transparent squares per frame. -from mewnala import * +from processing_py import * def setup(): diff --git a/crates/processing_pyo3/examples/Demos/Performance/static_particles_immediate.py b/crates/processing_pyo3/examples/Demos/Performance/static_particles_immediate.py index 2be3d7cf..a1631f17 100644 --- a/crates/processing_pyo3/examples/Demos/Performance/static_particles_immediate.py +++ b/crates/processing_pyo3/examples/Demos/Performance/static_particles_immediate.py @@ -2,7 +2,7 @@ # # 50000 textured sprites at fixed random positions, each drawn with # its own image() call every frame. -from mewnala import * +from processing_py import * sprite = None diff --git a/crates/processing_pyo3/examples/Demos/Performance/static_particles_retained.py b/crates/processing_pyo3/examples/Demos/Performance/static_particles_retained.py index 9207a788..552b53cd 100644 --- a/crates/processing_pyo3/examples/Demos/Performance/static_particles_retained.py +++ b/crates/processing_pyo3/examples/Demos/Performance/static_particles_retained.py @@ -2,7 +2,7 @@ # # 50000 textured sprites at fixed random positions, built once into a # single geometry and drawn with one call per frame. -from mewnala import * +from processing_py import * particles_geom = None sprite = None diff --git a/crates/processing_pyo3/examples/Demos/Performance/text_rendering.py b/crates/processing_pyo3/examples/Demos/Performance/text_rendering.py index 9775f67e..90e30a64 100644 --- a/crates/processing_pyo3/examples/Demos/Performance/text_rendering.py +++ b/crates/processing_pyo3/examples/Demos/Performance/text_rendering.py @@ -1,7 +1,7 @@ # Text Rendering # # Draws the word HELLO 10000 times per frame at random positions. -from mewnala import * +from processing_py import * def setup(): diff --git a/crates/processing_pyo3/examples/Demos/Tests/multiple_windows.py b/crates/processing_pyo3/examples/Demos/Tests/multiple_windows.py index 75bedfa7..78f88f54 100644 --- a/crates/processing_pyo3/examples/Demos/Tests/multiple_windows.py +++ b/crates/processing_pyo3/examples/Demos/Tests/multiple_windows.py @@ -3,7 +3,7 @@ # Based on code by GeneKao (https://github.com/GeneKao) # A second window is opened with create_window(); it is drawn through # its own Graphics methods inside draw(), and its mouse is polled. -from mewnala import * +from processing_py import * child = None mouse_pressed_on_parent = False diff --git a/crates/processing_pyo3/examples/Demos/Tests/no_background_test.py b/crates/processing_pyo3/examples/Demos/Tests/no_background_test.py index 3c70147f..9ce6dfd8 100644 --- a/crates/processing_pyo3/examples/Demos/Tests/no_background_test.py +++ b/crates/processing_pyo3/examples/Demos/Tests/no_background_test.py @@ -2,7 +2,7 @@ # # The background is only drawn once in setup, so every frame # accumulates on top of the previous one. -from mewnala import * +from processing_py import * def setup(): diff --git a/crates/processing_pyo3/examples/Demos/Tests/offscreen_test.py b/crates/processing_pyo3/examples/Demos/Tests/offscreen_test.py index be8d8d31..b30e20db 100644 --- a/crates/processing_pyo3/examples/Demos/Tests/offscreen_test.py +++ b/crates/processing_pyo3/examples/Demos/Tests/offscreen_test.py @@ -1,7 +1,7 @@ # Offscreen Test # # Draws into an offscreen buffer and displays it on the main canvas. -from mewnala import * +from processing_py import * pg = None diff --git a/crates/processing_pyo3/examples/Demos/Tests/redraw_test.py b/crates/processing_pyo3/examples/Demos/Tests/redraw_test.py index adadaadc..8530bdc6 100644 --- a/crates/processing_pyo3/examples/Demos/Tests/redraw_test.py +++ b/crates/processing_pyo3/examples/Demos/Tests/redraw_test.py @@ -2,7 +2,7 @@ # # no_loop() stops the draw loop; every key press calls redraw() # to draw one more frame. -from mewnala import * +from processing_py import * def setup(): diff --git a/crates/processing_pyo3/examples/Demos/Tests/resize_test.py b/crates/processing_pyo3/examples/Demos/Tests/resize_test.py index dbbac9f8..3b8c0fe5 100644 --- a/crates/processing_pyo3/examples/Demos/Tests/resize_test.py +++ b/crates/processing_pyo3/examples/Demos/Tests/resize_test.py @@ -2,7 +2,7 @@ # # The window can be resized by dragging its edges; the ellipse # stays centered because width and height follow the window. -from mewnala import * +from processing_py import * def setup(): diff --git a/crates/processing_pyo3/examples/Demos/Tests/specs_test.py b/crates/processing_pyo3/examples/Demos/Tests/specs_test.py index 611589ed..4adede8d 100644 --- a/crates/processing_pyo3/examples/Demos/Tests/specs_test.py +++ b/crates/processing_pyo3/examples/Demos/Tests/specs_test.py @@ -1,9 +1,9 @@ # Specs Test # # The Java sketch prints the OpenGL vendor, renderer, version, GLSL version -# and extensions. mewnala exposes no GPU adapter information, so this prints +# and extensions. processing_py exposes no GPU adapter information, so this prints # what it does know about the display and the sketch surface. -from mewnala import * +from processing_py import * size(100, 100) mode_3d() diff --git a/crates/processing_pyo3/examples/Topics/Advanced Data/array_list_class.py b/crates/processing_pyo3/examples/Topics/Advanced Data/array_list_class.py index ee7a3247..0f3e054b 100644 --- a/crates/processing_pyo3/examples/Topics/Advanced Data/array_list_class.py +++ b/crates/processing_pyo3/examples/Topics/Advanced Data/array_list_class.py @@ -6,7 +6,7 @@ # from the list. # # Click the mouse to add bouncing balls. -from mewnala import * +from processing_py import * balls = [] ball_width = 48 diff --git a/crates/processing_pyo3/examples/Topics/Advanced Data/counting_strings.py b/crates/processing_pyo3/examples/Topics/Advanced Data/counting_strings.py index 8e3d5b6d..6d179ad0 100644 --- a/crates/processing_pyo3/examples/Topics/Advanced Data/counting_strings.py +++ b/crates/processing_pyo3/examples/Topics/Advanced Data/counting_strings.py @@ -6,7 +6,7 @@ # # This example uses the dict to perform a simple concordance # http://en.wikipedia.org/wiki/Concordance_(publishing) -from mewnala import * +from processing_py import * import os # A dict pairs strings with integers diff --git a/crates/processing_pyo3/examples/Topics/Advanced Data/hash_map_class.py b/crates/processing_pyo3/examples/Topics/Advanced Data/hash_map_class.py index ee16c14e..7d8836c3 100644 --- a/crates/processing_pyo3/examples/Topics/Advanced Data/hash_map_class.py +++ b/crates/processing_pyo3/examples/Topics/Advanced Data/hash_map_class.py @@ -13,7 +13,7 @@ # # In this example, words that appear in one book (Dracula) only are colored white # while words the other (Frankenstein) are colored black. -from mewnala import * +from processing_py import * import os words = {} # dict object diff --git a/crates/processing_pyo3/examples/Topics/Advanced Data/int_list_lottery.py b/crates/processing_pyo3/examples/Topics/Advanced Data/int_list_lottery.py index fda5d757..f5b6fa10 100644 --- a/crates/processing_pyo3/examples/Topics/Advanced Data/int_list_lottery.py +++ b/crates/processing_pyo3/examples/Topics/Advanced Data/int_list_lottery.py @@ -8,7 +8,7 @@ # In this example, three lists of integers are created. One is a pool of numbers # that is shuffled and picked randomly from. One is the list of "picked" numbers. # And one is a lottery "ticket" which includes 5 numbers that are trying to be matched. -from mewnala import * +from processing_py import * from random import shuffle # Three lists of integers diff --git a/crates/processing_pyo3/examples/Topics/Advanced Data/load_save_json.py b/crates/processing_pyo3/examples/Topics/Advanced Data/load_save_json.py index a4090596..3524c83f 100644 --- a/crates/processing_pyo3/examples/Topics/Advanced Data/load_save_json.py +++ b/crates/processing_pyo3/examples/Topics/Advanced Data/load_save_json.py @@ -27,7 +27,7 @@ # } # ] # } -from mewnala import * +from processing_py import * import json import os diff --git a/crates/processing_pyo3/examples/Topics/Advanced Data/load_save_table.py b/crates/processing_pyo3/examples/Topics/Advanced Data/load_save_table.py index 3f3a6c72..3a456e47 100644 --- a/crates/processing_pyo3/examples/Topics/Advanced Data/load_save_table.py +++ b/crates/processing_pyo3/examples/Topics/Advanced Data/load_save_table.py @@ -12,7 +12,7 @@ # 372,137,52.42526,Sad # 273,235,61.14072,Joyous # 121,179,44.758068,Melancholy -from mewnala import * +from processing_py import * import csv import os diff --git a/crates/processing_pyo3/examples/Topics/Advanced Data/load_save_xml.py b/crates/processing_pyo3/examples/Topics/Advanced Data/load_save_xml.py index 19e87244..3aaebf3b 100644 --- a/crates/processing_pyo3/examples/Topics/Advanced Data/load_save_xml.py +++ b/crates/processing_pyo3/examples/Topics/Advanced Data/load_save_xml.py @@ -20,7 +20,7 @@ # # # -from mewnala import * +from processing_py import * import os import xml.etree.ElementTree as ET diff --git a/crates/processing_pyo3/examples/Topics/Advanced Data/regex.py b/crates/processing_pyo3/examples/Topics/Advanced Data/regex.py index de5761a6..63a4302f 100644 --- a/crates/processing_pyo3/examples/Topics/Advanced Data/regex.py +++ b/crates/processing_pyo3/examples/Topics/Advanced Data/regex.py @@ -6,7 +6,7 @@ # # Here we'll load the raw HTML from a URL and search for any # links -from mewnala import * +from processing_py import * import re from urllib.request import Request, urlopen diff --git a/crates/processing_pyo3/examples/Topics/Advanced Data/threads.py b/crates/processing_pyo3/examples/Topics/Advanced Data/threads.py index e49c5778..1a58a72e 100644 --- a/crates/processing_pyo3/examples/Topics/Advanced Data/threads.py +++ b/crates/processing_pyo3/examples/Topics/Advanced Data/threads.py @@ -7,7 +7,7 @@ # When the thread is started, the draw() loop will continue while # the code inside the function passed to the Thread will operate # in the background. -from mewnala import * +from processing_py import * import threading from urllib.request import Request, urlopen diff --git a/crates/processing_pyo3/examples/Topics/Animation/animated_sprite.py b/crates/processing_pyo3/examples/Topics/Animation/animated_sprite.py index 2c885255..780fdb2d 100644 --- a/crates/processing_pyo3/examples/Topics/Animation/animated_sprite.py +++ b/crates/processing_pyo3/examples/Topics/Animation/animated_sprite.py @@ -6,7 +6,7 @@ # It would be easy to write a program to display # animated GIFs, but would not allow as much control over # the display sequence and rate of display. -from mewnala import * +from processing_py import * animation1 = None animation2 = None diff --git a/crates/processing_pyo3/examples/Topics/Animation/sequential.py b/crates/processing_pyo3/examples/Topics/Animation/sequential.py index e4266417..107639d2 100644 --- a/crates/processing_pyo3/examples/Topics/Animation/sequential.py +++ b/crates/processing_pyo3/examples/Topics/Animation/sequential.py @@ -3,7 +3,7 @@ # # Displaying a sequence of images creates the illusion of motion. # Twelve images are loaded and each is displayed individually in a loop. -from mewnala import * +from processing_py import * num_frames = 12 # The number of frames in the animation current_frame = 0 diff --git a/crates/processing_pyo3/examples/Topics/Cellular Automata/game_of_life.py b/crates/processing_pyo3/examples/Topics/Cellular Automata/game_of_life.py index 2b711972..6f14f1fc 100644 --- a/crates/processing_pyo3/examples/Topics/Cellular Automata/game_of_life.py +++ b/crates/processing_pyo3/examples/Topics/Cellular Automata/game_of_life.py @@ -6,7 +6,7 @@ # cells. Press 'R' to randomly reset the cells' grid. # Press 'C' to clear the cells' grid. The original Game # of Life was created by John Conway in 1970. -from mewnala import * +from processing_py import * # Size of cells cell_size = 5 diff --git a/crates/processing_pyo3/examples/Topics/Cellular Automata/spore_1.py b/crates/processing_pyo3/examples/Topics/Cellular Automata/spore_1.py index d3bb658e..afef0c25 100644 --- a/crates/processing_pyo3/examples/Topics/Cellular Automata/spore_1.py +++ b/crates/processing_pyo3/examples/Topics/Cellular Automata/spore_1.py @@ -6,7 +6,7 @@ # the array 'cells'. Each cell has a run() method, which performs actions # based on the cell's surroundings. Cells run one at a time (to avoid conflicts # like wanting to move to the same space) and in random order. -from mewnala import * +from processing_py import * w = None numcells = 0 diff --git a/crates/processing_pyo3/examples/Topics/Cellular Automata/spore_2.py b/crates/processing_pyo3/examples/Topics/Cellular Automata/spore_2.py index b8c03e8f..fe5ab228 100644 --- a/crates/processing_pyo3/examples/Topics/Cellular Automata/spore_2.py +++ b/crates/processing_pyo3/examples/Topics/Cellular Automata/spore_2.py @@ -6,7 +6,7 @@ # the array 'cells'. Each cell has a run() method, which performs actions # based on the cell's surroundings. Cells run one at a time (to avoid conflicts # like wanting to move to the same space) and in random order. -from mewnala import * +from processing_py import * w = None maxcells = 8000 diff --git a/crates/processing_pyo3/examples/Topics/Cellular Automata/wolfram.py b/crates/processing_pyo3/examples/Topics/Cellular Automata/wolfram.py index c0f86860..6ebdd779 100644 --- a/crates/processing_pyo3/examples/Topics/Cellular Automata/wolfram.py +++ b/crates/processing_pyo3/examples/Topics/Cellular Automata/wolfram.py @@ -5,7 +5,7 @@ # cellular automata. When the system reaches bottom # of the window, it restarts with a new ruleset. # Mouse click restarts as well. -from mewnala import * +from processing_py import * ca = None # An instance object to the cellular automata diff --git a/crates/processing_pyo3/examples/Topics/Create Shapes/begin_end_contour.py b/crates/processing_pyo3/examples/Topics/Create Shapes/begin_end_contour.py index 1e79b317..84d7974d 100644 --- a/crates/processing_pyo3/examples/Topics/Create Shapes/begin_end_contour.py +++ b/crates/processing_pyo3/examples/Topics/Create Shapes/begin_end_contour.py @@ -1,7 +1,7 @@ # BeginEndContour # # How to cut a shape out of another using begin_contour() and end_contour() -from mewnala import * +from processing_py import * angle = 0.0 diff --git a/crates/processing_pyo3/examples/Topics/Create Shapes/group_pshape.py b/crates/processing_pyo3/examples/Topics/Create Shapes/group_pshape.py index 971e505c..484364ff 100644 --- a/crates/processing_pyo3/examples/Topics/Create Shapes/group_pshape.py +++ b/crates/processing_pyo3/examples/Topics/Create Shapes/group_pshape.py @@ -1,7 +1,7 @@ # GroupPShape # # How to group multiple PShapes into one PShape -from mewnala import * +from processing_py import * # A PShape that will group PShapes group = None diff --git a/crates/processing_pyo3/examples/Topics/Create Shapes/particle_system_pshape.py b/crates/processing_pyo3/examples/Topics/Create Shapes/particle_system_pshape.py index be4ad649..7685e633 100644 --- a/crates/processing_pyo3/examples/Topics/Create Shapes/particle_system_pshape.py +++ b/crates/processing_pyo3/examples/Topics/Create Shapes/particle_system_pshape.py @@ -1,7 +1,7 @@ # ParticleSystemPShape # # A particle system optimized for drawing using PShape -from mewnala import * +from processing_py import * # Particle System object ps = None diff --git a/crates/processing_pyo3/examples/Topics/Create Shapes/path_pshape.py b/crates/processing_pyo3/examples/Topics/Create Shapes/path_pshape.py index b1e5329e..00899209 100644 --- a/crates/processing_pyo3/examples/Topics/Create Shapes/path_pshape.py +++ b/crates/processing_pyo3/examples/Topics/Create Shapes/path_pshape.py @@ -1,7 +1,7 @@ # PathPShape # # A simple path using PShape -from mewnala import * +from processing_py import * # A PShape object path = None diff --git a/crates/processing_pyo3/examples/Topics/Create Shapes/polygon_pshape.py b/crates/processing_pyo3/examples/Topics/Create Shapes/polygon_pshape.py index 083b23ab..94aef707 100644 --- a/crates/processing_pyo3/examples/Topics/Create Shapes/polygon_pshape.py +++ b/crates/processing_pyo3/examples/Topics/Create Shapes/polygon_pshape.py @@ -1,7 +1,7 @@ # PolygonPShape # # Using a retained geometry to display a custom polygon. -from mewnala import * +from processing_py import * # The retained shape star = None diff --git a/crates/processing_pyo3/examples/Topics/Create Shapes/polygon_pshape_oop.py b/crates/processing_pyo3/examples/Topics/Create Shapes/polygon_pshape_oop.py index 461c8bf8..c5660f04 100644 --- a/crates/processing_pyo3/examples/Topics/Create Shapes/polygon_pshape_oop.py +++ b/crates/processing_pyo3/examples/Topics/Create Shapes/polygon_pshape_oop.py @@ -1,7 +1,7 @@ # PolygonPShapeOOP # # Wrapping a retained geometry inside a custom class -from mewnala import * +from processing_py import * # A Star object s1 = None diff --git a/crates/processing_pyo3/examples/Topics/Create Shapes/polygon_pshape_oop_2.py b/crates/processing_pyo3/examples/Topics/Create Shapes/polygon_pshape_oop_2.py index f40a9552..e060fc64 100644 --- a/crates/processing_pyo3/examples/Topics/Create Shapes/polygon_pshape_oop_2.py +++ b/crates/processing_pyo3/examples/Topics/Create Shapes/polygon_pshape_oop_2.py @@ -3,7 +3,7 @@ # Wrapping a retained geometry inside a custom class # and demonstrating how we can have a multiple objects each # using the same geometry. -from mewnala import * +from processing_py import * # A list of objects polygons = [] diff --git a/crates/processing_pyo3/examples/Topics/Create Shapes/polygon_pshape_oop_3.py b/crates/processing_pyo3/examples/Topics/Create Shapes/polygon_pshape_oop_3.py index 56fd58d1..7d71cb7d 100644 --- a/crates/processing_pyo3/examples/Topics/Create Shapes/polygon_pshape_oop_3.py +++ b/crates/processing_pyo3/examples/Topics/Create Shapes/polygon_pshape_oop_3.py @@ -3,7 +3,7 @@ # Wrapping a PShape inside a custom class # and demonstrating how we can have a multiple objects each # using the same PShape. -from mewnala import * +from processing_py import * # A list of objects polygons = [] diff --git a/crates/processing_pyo3/examples/Topics/Create Shapes/primitive_pshape.py b/crates/processing_pyo3/examples/Topics/Create Shapes/primitive_pshape.py index 2f619914..36ed8b84 100644 --- a/crates/processing_pyo3/examples/Topics/Create Shapes/primitive_pshape.py +++ b/crates/processing_pyo3/examples/Topics/Create Shapes/primitive_pshape.py @@ -1,7 +1,7 @@ # PrimitivePShape # # Using a PShape to display a primitive shape (in this case, ellipse). -from mewnala import * +from processing_py import * # The PShape object circle = None diff --git a/crates/processing_pyo3/examples/Topics/Create Shapes/wiggle_pshape.py b/crates/processing_pyo3/examples/Topics/Create Shapes/wiggle_pshape.py index 6d826e04..da439039 100644 --- a/crates/processing_pyo3/examples/Topics/Create Shapes/wiggle_pshape.py +++ b/crates/processing_pyo3/examples/Topics/Create Shapes/wiggle_pshape.py @@ -1,7 +1,7 @@ # WigglePShape # # How to move the individual vertices of a retained geometry -from mewnala import * +from processing_py import * # A "Wiggler" object w = None diff --git a/crates/processing_pyo3/examples/Topics/Curves/arc_length_parametrization.py b/crates/processing_pyo3/examples/Topics/Curves/arc_length_parametrization.py index 7dba0b35..589f2e8d 100644 --- a/crates/processing_pyo3/examples/Topics/Curves/arc_length_parametrization.py +++ b/crates/processing_pyo3/examples/Topics/Curves/arc_length_parametrization.py @@ -7,7 +7,7 @@ # To demonstrate the technique, a cubic Bezier curve is used. # However, this technique is applicable to any kind of # parametric curve. -from mewnala import * +from processing_py import * from bisect import bisect_left curve = None diff --git a/crates/processing_pyo3/examples/Topics/Drawing/continuous_lines.py b/crates/processing_pyo3/examples/Topics/Drawing/continuous_lines.py index 9a667207..c00e227b 100644 --- a/crates/processing_pyo3/examples/Topics/Drawing/continuous_lines.py +++ b/crates/processing_pyo3/examples/Topics/Drawing/continuous_lines.py @@ -1,7 +1,7 @@ # Continuous Lines. # # Click and drag the mouse to draw a line. -from mewnala import * +from processing_py import * def setup(): diff --git a/crates/processing_pyo3/examples/Topics/Drawing/pattern.py b/crates/processing_pyo3/examples/Topics/Drawing/pattern.py index 30bb9254..d0b69b56 100644 --- a/crates/processing_pyo3/examples/Topics/Drawing/pattern.py +++ b/crates/processing_pyo3/examples/Topics/Drawing/pattern.py @@ -2,7 +2,7 @@ # # Move the cursor over the image to draw with a software tool # which responds to the speed of the mouse. -from mewnala import * +from processing_py import * def setup(): diff --git a/crates/processing_pyo3/examples/Topics/Drawing/pulses.py b/crates/processing_pyo3/examples/Topics/Drawing/pulses.py index 699da12b..39c49a2d 100644 --- a/crates/processing_pyo3/examples/Topics/Drawing/pulses.py +++ b/crates/processing_pyo3/examples/Topics/Drawing/pulses.py @@ -3,7 +3,7 @@ # Software drawing instruments can follow a rhythm or abide by rules independent # of drawn gestures. This is a form of collaborative drawing in which the draftsperson # controls some aspects of the image and the software controls others. -from mewnala import * +from processing_py import * angle = 0 diff --git a/crates/processing_pyo3/examples/Topics/File IO/directory_list.py b/crates/processing_pyo3/examples/Topics/File IO/directory_list.py index 57c9b862..1de7a0cf 100644 --- a/crates/processing_pyo3/examples/Topics/File IO/directory_list.py +++ b/crates/processing_pyo3/examples/Topics/File IO/directory_list.py @@ -7,7 +7,7 @@ # of files in a directory # 3) List the names along with metadata (size, last modified) # of files in a directory and all subdirectories (using recursion) -from mewnala import * +from processing_py import * import os import time diff --git a/crates/processing_pyo3/examples/Topics/File IO/load_file_1.py b/crates/processing_pyo3/examples/Topics/File IO/load_file_1.py index bdc9ab4c..3af20e03 100644 --- a/crates/processing_pyo3/examples/Topics/File IO/load_file_1.py +++ b/crates/processing_pyo3/examples/Topics/File IO/load_file_1.py @@ -2,7 +2,7 @@ # # Loads a text file that contains two numbers separated by a tab ('\t'). # A new pair of numbers is loaded each frame and used to draw a point on the screen. -from mewnala import * +from processing_py import * import os lines = [] diff --git a/crates/processing_pyo3/examples/Topics/File IO/load_file_2.py b/crates/processing_pyo3/examples/Topics/File IO/load_file_2.py index 0aceb1d4..710c2c0b 100644 --- a/crates/processing_pyo3/examples/Topics/File IO/load_file_2.py +++ b/crates/processing_pyo3/examples/Topics/File IO/load_file_2.py @@ -4,7 +4,7 @@ # with a tab and corresponds to a different aspect of each car. The file stores # the miles per gallon, cylinders, displacement, etc., for more than 400 different # makes and models. Press a mouse button to advance to the next group of entries. -from mewnala import * +from processing_py import * import os records = [] diff --git a/crates/processing_pyo3/examples/Topics/File IO/save_file_1.py b/crates/processing_pyo3/examples/Topics/File IO/save_file_1.py index b53ef3d9..9a518380 100644 --- a/crates/processing_pyo3/examples/Topics/File IO/save_file_1.py +++ b/crates/processing_pyo3/examples/Topics/File IO/save_file_1.py @@ -3,7 +3,7 @@ # Saving files is a useful way to store data so it can be viewed after a # program has stopped running. Writing a list of strings to a file, with # each string written to a new line, saves it to the sketch's folder. -from mewnala import * +from processing_py import * import os x = [] diff --git a/crates/processing_pyo3/examples/Topics/File IO/save_file_2.py b/crates/processing_pyo3/examples/Topics/File IO/save_file_2.py index 4e4c0041..3f056382 100644 --- a/crates/processing_pyo3/examples/Topics/File IO/save_file_2.py +++ b/crates/processing_pyo3/examples/Topics/File IO/save_file_2.py @@ -3,7 +3,7 @@ # This file uses a file object to write data continuously to a file # while the mouse is pressed. When a key is pressed, the file closes # itself and the program is stopped. -from mewnala import * +from processing_py import * import os output = None diff --git a/crates/processing_pyo3/examples/Topics/File IO/save_frames.py b/crates/processing_pyo3/examples/Topics/File IO/save_frames.py index b8544bf7..2333836d 100644 --- a/crates/processing_pyo3/examples/Topics/File IO/save_frames.py +++ b/crates/processing_pyo3/examples/Topics/File IO/save_frames.py @@ -3,7 +3,7 @@ # # This example demonstrates how to use save_frame() to render # out an image sequence that you can assemble into a movie. -from mewnala import * +from processing_py import * # A boolean to track whether we are recording are not recording = False diff --git a/crates/processing_pyo3/examples/Topics/File IO/save_one_image.py b/crates/processing_pyo3/examples/Topics/File IO/save_one_image.py index 8a820aa4..06c00c87 100644 --- a/crates/processing_pyo3/examples/Topics/File IO/save_one_image.py +++ b/crates/processing_pyo3/examples/Topics/File IO/save_one_image.py @@ -4,7 +4,7 @@ # display window. In this example, save() is run when a mouse # button is pressed. The image "line.png" is saved to the # same folder as the sketch's program file. -from mewnala import * +from processing_py import * def setup(): diff --git a/crates/processing_pyo3/examples/Topics/File IO/tile_images.py b/crates/processing_pyo3/examples/Topics/File IO/tile_images.py index d605caa8..f10e703f 100644 --- a/crates/processing_pyo3/examples/Topics/File IO/tile_images.py +++ b/crates/processing_pyo3/examples/Topics/File IO/tile_images.py @@ -2,7 +2,7 @@ # # Draws an image larger than the screen, and saves the image as nine tiles. # The scale_value variable sets amount of scaling: 1 is 100%, 2 is 200%, etc. -from mewnala import * +from processing_py import * scale_value = 3 # Multiplication factor xoffset = 0 # x-axis offset diff --git a/crates/processing_pyo3/examples/Topics/Fractals and L-Systems/koch.py b/crates/processing_pyo3/examples/Topics/Fractals and L-Systems/koch.py index 1462c220..1558212b 100644 --- a/crates/processing_pyo3/examples/Topics/Fractals and L-Systems/koch.py +++ b/crates/processing_pyo3/examples/Topics/Fractals and L-Systems/koch.py @@ -3,7 +3,7 @@ # # Renders a simple fractal, the Koch snowflake. # Each recursive level is drawn in sequence. -from mewnala import * +from processing_py import * k = None diff --git a/crates/processing_pyo3/examples/Topics/Fractals and L-Systems/mandelbrot.py b/crates/processing_pyo3/examples/Topics/Fractals and L-Systems/mandelbrot.py index 58cd8af4..606b0557 100644 --- a/crates/processing_pyo3/examples/Topics/Fractals and L-Systems/mandelbrot.py +++ b/crates/processing_pyo3/examples/Topics/Fractals and L-Systems/mandelbrot.py @@ -3,7 +3,7 @@ # (slight modification by l8l) # # Simple rendering of the Mandelbrot set. -from mewnala import * +from processing_py import * def setup(): diff --git a/crates/processing_pyo3/examples/Topics/Fractals and L-Systems/penrose_snowflake.py b/crates/processing_pyo3/examples/Topics/Fractals and L-Systems/penrose_snowflake.py index 2801540b..d9cb9395 100644 --- a/crates/processing_pyo3/examples/Topics/Fractals and L-Systems/penrose_snowflake.py +++ b/crates/processing_pyo3/examples/Topics/Fractals and L-Systems/penrose_snowflake.py @@ -2,7 +2,7 @@ # by Geraldine Sarmiento. # # This example was based on Patrick Dwyer's L-System class. -from mewnala import * +from processing_py import * ps = None diff --git a/crates/processing_pyo3/examples/Topics/Fractals and L-Systems/penrose_tile.py b/crates/processing_pyo3/examples/Topics/Fractals and L-Systems/penrose_tile.py index 11b0631b..df38e868 100644 --- a/crates/processing_pyo3/examples/Topics/Fractals and L-Systems/penrose_tile.py +++ b/crates/processing_pyo3/examples/Topics/Fractals and L-Systems/penrose_tile.py @@ -2,7 +2,7 @@ # by Geraldine Sarmiento. # # This example was based on Patrick Dwyer's L-System class. -from mewnala import * +from processing_py import * ds = None diff --git a/crates/processing_pyo3/examples/Topics/Fractals and L-Systems/pentigree.py b/crates/processing_pyo3/examples/Topics/Fractals and L-Systems/pentigree.py index 0b428a21..c85ec583 100644 --- a/crates/processing_pyo3/examples/Topics/Fractals and L-Systems/pentigree.py +++ b/crates/processing_pyo3/examples/Topics/Fractals and L-Systems/pentigree.py @@ -2,7 +2,7 @@ # by Geraldine Sarmiento. # # This example was based on Patrick Dwyer's L-System class. -from mewnala import * +from processing_py import * ps = None diff --git a/crates/processing_pyo3/examples/Topics/Fractals and L-Systems/tree.py b/crates/processing_pyo3/examples/Topics/Fractals and L-Systems/tree.py index 0b8b7922..04e81a26 100644 --- a/crates/processing_pyo3/examples/Topics/Fractals and L-Systems/tree.py +++ b/crates/processing_pyo3/examples/Topics/Fractals and L-Systems/tree.py @@ -5,7 +5,7 @@ # The branching angle is calculated as a function of # the horizontal mouse location. Move the mouse left # and right to change the angle. -from mewnala import * +from processing_py import * theta = 0.0 diff --git a/crates/processing_pyo3/examples/Topics/GUI/button.py b/crates/processing_pyo3/examples/Topics/GUI/button.py index 2c27314b..6400cd87 100644 --- a/crates/processing_pyo3/examples/Topics/GUI/button.py +++ b/crates/processing_pyo3/examples/Topics/GUI/button.py @@ -3,7 +3,7 @@ # Click on one of the colored shapes in the # center of the image to change the color of # the background. -from mewnala import * +from processing_py import * rect_x = 0 # Position of square button rect_y = 0 diff --git a/crates/processing_pyo3/examples/Topics/GUI/handles.py b/crates/processing_pyo3/examples/Topics/GUI/handles.py index 3b261d60..391e12e1 100644 --- a/crates/processing_pyo3/examples/Topics/GUI/handles.py +++ b/crates/processing_pyo3/examples/Topics/GUI/handles.py @@ -1,7 +1,7 @@ # Handles. # # Click and drag the white boxes to change their position. -from mewnala import * +from processing_py import * handles = [] diff --git a/crates/processing_pyo3/examples/Topics/GUI/rollover.py b/crates/processing_pyo3/examples/Topics/GUI/rollover.py index 9fb3a56a..314639be 100644 --- a/crates/processing_pyo3/examples/Topics/GUI/rollover.py +++ b/crates/processing_pyo3/examples/Topics/GUI/rollover.py @@ -2,7 +2,7 @@ # # Roll over the colored squares in the center of the image # to change the color of the outside rectangle. -from mewnala import * +from processing_py import * rect_x = 0 # Position of square button rect_y = 0 diff --git a/crates/processing_pyo3/examples/Topics/GUI/scrollbar.py b/crates/processing_pyo3/examples/Topics/GUI/scrollbar.py index bfc15fd1..a57458da 100644 --- a/crates/processing_pyo3/examples/Topics/GUI/scrollbar.py +++ b/crates/processing_pyo3/examples/Topics/GUI/scrollbar.py @@ -1,7 +1,7 @@ # Scrollbar. # # Move the scrollbars left and right to change the positions of the images. -from mewnala import * +from processing_py import * # True if a mouse button was pressed while no other button was. first_mouse_press = False diff --git a/crates/processing_pyo3/examples/Topics/Geometry/icosahedra.py b/crates/processing_pyo3/examples/Topics/Geometry/icosahedra.py index 1d38d040..401e23b8 100644 --- a/crates/processing_pyo3/examples/Topics/Geometry/icosahedra.py +++ b/crates/processing_pyo3/examples/Topics/Geometry/icosahedra.py @@ -3,7 +3,7 @@ # # This example plots icosahedra. The Icosahdron is a regular # polyhedron composed of twenty equalateral triangles. -from mewnala import * +from processing_py import * ico1 = None ico2 = None diff --git a/crates/processing_pyo3/examples/Topics/Geometry/noise_sphere.py b/crates/processing_pyo3/examples/Topics/Geometry/noise_sphere.py index ba790ffb..fcbee87b 100644 --- a/crates/processing_pyo3/examples/Topics/Geometry/noise_sphere.py +++ b/crates/processing_pyo3/examples/Topics/Geometry/noise_sphere.py @@ -2,7 +2,7 @@ # by David Pena. # # Uniform random distribution on the surface of a sphere. -from mewnala import * +from processing_py import * cuantos = 4000 lista = [] diff --git a/crates/processing_pyo3/examples/Topics/Geometry/rgb_cube.py b/crates/processing_pyo3/examples/Topics/Geometry/rgb_cube.py index 7b827c1b..d11724c1 100644 --- a/crates/processing_pyo3/examples/Topics/Geometry/rgb_cube.py +++ b/crates/processing_pyo3/examples/Topics/Geometry/rgb_cube.py @@ -2,7 +2,7 @@ # # The three primary colors of the additive color model are red, green, and blue. # This RGB color cube displays smooth transitions between these colors. -from mewnala import * +from processing_py import * xmag = 0 ymag = 0 diff --git a/crates/processing_pyo3/examples/Topics/Geometry/shape_transform.py b/crates/processing_pyo3/examples/Topics/Geometry/shape_transform.py index 525d5110..4f4abe14 100644 --- a/crates/processing_pyo3/examples/Topics/Geometry/shape_transform.py +++ b/crates/processing_pyo3/examples/Topics/Geometry/shape_transform.py @@ -9,7 +9,7 @@ # Up Arrow - increases points # Down Arrow - decreases points # 'p' key toggles between cube/pyramid -from mewnala import * +from processing_py import * pts = 4 angle = 0 diff --git a/crates/processing_pyo3/examples/Topics/Geometry/space_junk.py b/crates/processing_pyo3/examples/Topics/Geometry/space_junk.py index c40bd77f..c3dfc95d 100644 --- a/crates/processing_pyo3/examples/Topics/Geometry/space_junk.py +++ b/crates/processing_pyo3/examples/Topics/Geometry/space_junk.py @@ -4,7 +4,7 @@ # Rotating cubes in space using a custom Cube class. # Color controlled by light sources. Move the mouse left # and right to zoom. -from mewnala import * +from processing_py import * # Used for oveall rotation angle = 0 diff --git a/crates/processing_pyo3/examples/Topics/Geometry/toroid.py b/crates/processing_pyo3/examples/Topics/Geometry/toroid.py index 64d7de98..d17e3259 100644 --- a/crates/processing_pyo3/examples/Topics/Geometry/toroid.py +++ b/crates/processing_pyo3/examples/Topics/Geometry/toroid.py @@ -15,7 +15,7 @@ # 'x' key initial polygon radius++ # 'w' key toggle wireframe/solid shading # 'h' key toggle sphere/helix -from mewnala import * +from processing_py import * pts = 40 angle = 0 diff --git a/crates/processing_pyo3/examples/Topics/Geometry/vertices.py b/crates/processing_pyo3/examples/Topics/Geometry/vertices.py index 6bcc373c..a3a24ef7 100644 --- a/crates/processing_pyo3/examples/Topics/Geometry/vertices.py +++ b/crates/processing_pyo3/examples/Topics/Geometry/vertices.py @@ -5,7 +5,7 @@ # from y=0 to y=height. The radius at the top can be # different from the radius at the bottom, and the # number of sides drawn is variable. -from mewnala import * +from processing_py import * light = None cylinder = None diff --git a/crates/processing_pyo3/examples/Topics/Image Processing/blending.py b/crates/processing_pyo3/examples/Topics/Image Processing/blending.py index 28893d37..615e8f2f 100644 --- a/crates/processing_pyo3/examples/Topics/Image Processing/blending.py +++ b/crates/processing_pyo3/examples/Topics/Image Processing/blending.py @@ -3,7 +3,7 @@ # # Images can be blended using one of the 10 blending modes. # Click to go to cycle through the modes. -from mewnala import * +from processing_py import * img1 = None img2 = None diff --git a/crates/processing_pyo3/examples/Topics/Image Processing/blur.py b/crates/processing_pyo3/examples/Topics/Image Processing/blur.py index abe8bcb7..ef4edcfb 100644 --- a/crates/processing_pyo3/examples/Topics/Image Processing/blur.py +++ b/crates/processing_pyo3/examples/Topics/Image Processing/blur.py @@ -25,7 +25,7 @@ # 1/256 * [ 6 24 36 24 6 ] # [ 4 16 24 16 4 ] # [ 1 4 6 4 1 ] -from mewnala import * +from processing_py import * v = 1.0 / 9.0 kernel = [[v, v, v], diff --git a/crates/processing_pyo3/examples/Topics/Image Processing/brightness_pixels.py b/crates/processing_pyo3/examples/Topics/Image Processing/brightness_pixels.py index 18b3c695..3b0b95e1 100644 --- a/crates/processing_pyo3/examples/Topics/Image Processing/brightness_pixels.py +++ b/crates/processing_pyo3/examples/Topics/Image Processing/brightness_pixels.py @@ -3,7 +3,7 @@ # # This program adjusts the brightness of a part of the image by # calculating the distance of each pixel to the mouse. -from mewnala import * +from processing_py import * img = None diff --git a/crates/processing_pyo3/examples/Topics/Image Processing/convolution.py b/crates/processing_pyo3/examples/Topics/Image Processing/convolution.py index 358665af..91ce56da 100644 --- a/crates/processing_pyo3/examples/Topics/Image Processing/convolution.py +++ b/crates/processing_pyo3/examples/Topics/Image Processing/convolution.py @@ -4,7 +4,7 @@ # Applies a convolution matrix to a portion of an image. Move mouse to # apply filter to different parts of the image. Click mouse to cycle # through different effects (kernels). -from mewnala import * +from processing_py import * img = None effect = 0 diff --git a/crates/processing_pyo3/examples/Topics/Image Processing/edge_detection.py b/crates/processing_pyo3/examples/Topics/Image Processing/edge_detection.py index e415ccca..603dab53 100644 --- a/crates/processing_pyo3/examples/Topics/Image Processing/edge_detection.py +++ b/crates/processing_pyo3/examples/Topics/Image Processing/edge_detection.py @@ -16,7 +16,7 @@ # For weaker detection effect, try this kernel: [ 0 -1 0 ] # [ -1 4 -1 ] # [ 0 -1 0 ] -from mewnala import * +from processing_py import * kernel = [[-1, -1, -1], [-1, 8, -1], diff --git a/crates/processing_pyo3/examples/Topics/Image Processing/explode.py b/crates/processing_pyo3/examples/Topics/Image Processing/explode.py index 472e6124..d326a42a 100644 --- a/crates/processing_pyo3/examples/Topics/Image Processing/explode.py +++ b/crates/processing_pyo3/examples/Topics/Image Processing/explode.py @@ -4,7 +4,7 @@ # Mouse horizontal location controls breaking apart of image and # Maps pixels from a 2D image into 3D space. Pixel brightness controls # translation along z axis. -from mewnala import * +from processing_py import * img = None # The source image cellsize = 2 # Dimensions of each cell in the grid diff --git a/crates/processing_pyo3/examples/Topics/Image Processing/extrusion.py b/crates/processing_pyo3/examples/Topics/Image Processing/extrusion.py index 5dac2077..35bdaeab 100644 --- a/crates/processing_pyo3/examples/Topics/Image Processing/extrusion.py +++ b/crates/processing_pyo3/examples/Topics/Image Processing/extrusion.py @@ -2,7 +2,7 @@ # # Converts a flat image into spatial data points and rotates the points # around the center. -from mewnala import * +from processing_py import * a = None onetime = True diff --git a/crates/processing_pyo3/examples/Topics/Image Processing/histogram.py b/crates/processing_pyo3/examples/Topics/Image Processing/histogram.py index d07e8116..a5bf5317 100644 --- a/crates/processing_pyo3/examples/Topics/Image Processing/histogram.py +++ b/crates/processing_pyo3/examples/Topics/Image Processing/histogram.py @@ -4,7 +4,7 @@ # A histogram is the frequency distribution # of the gray levels with the number of pure black values # displayed on the left and number of pure white values on the right. -from mewnala import * +from processing_py import * img = None diff --git a/crates/processing_pyo3/examples/Topics/Image Processing/linear_image.py b/crates/processing_pyo3/examples/Topics/Image Processing/linear_image.py index 576831fb..bb2e5193 100644 --- a/crates/processing_pyo3/examples/Topics/Image Processing/linear_image.py +++ b/crates/processing_pyo3/examples/Topics/Image Processing/linear_image.py @@ -2,7 +2,7 @@ # # Click and drag mouse up and down to control the signal. # Press and hold any key to watch the scanning. -from mewnala import * +from processing_py import * img = None direction = 1 diff --git a/crates/processing_pyo3/examples/Topics/Image Processing/pixel_array.py b/crates/processing_pyo3/examples/Topics/Image Processing/pixel_array.py index 520fb8bc..a6754a6d 100644 --- a/crates/processing_pyo3/examples/Topics/Image Processing/pixel_array.py +++ b/crates/processing_pyo3/examples/Topics/Image Processing/pixel_array.py @@ -4,7 +4,7 @@ # press and hold any key to see the current pixel being read. # This program sequentially reads the color of every pixel of an image # and displays this color to fill the window. -from mewnala import * +from processing_py import * img = None direction = 1 diff --git a/crates/processing_pyo3/examples/Topics/Image Processing/sharpen.py b/crates/processing_pyo3/examples/Topics/Image Processing/sharpen.py index 7cfe854a..333df8ba 100644 --- a/crates/processing_pyo3/examples/Topics/Image Processing/sharpen.py +++ b/crates/processing_pyo3/examples/Topics/Image Processing/sharpen.py @@ -22,7 +22,7 @@ # [ 0 -1 0 ] # # For greater sharpening, try increasing the value of the center pixel. -from mewnala import * +from processing_py import * kernel = [[-1, -1, -1], [-1, 9, -1], diff --git a/crates/processing_pyo3/examples/Topics/Image Processing/zoom.py b/crates/processing_pyo3/examples/Topics/Image Processing/zoom.py index 29962ef8..c62d5304 100644 --- a/crates/processing_pyo3/examples/Topics/Image Processing/zoom.py +++ b/crates/processing_pyo3/examples/Topics/Image Processing/zoom.py @@ -3,7 +3,7 @@ # Move the cursor over the image to alter its position. Click and press # the mouse to zoom. This program displays a series of lines with their # heights corresponding to a color value read from an image. -from mewnala import * +from processing_py import * img = None img_pixels = [] diff --git a/crates/processing_pyo3/examples/Topics/Interaction/follow_1.py b/crates/processing_pyo3/examples/Topics/Interaction/follow_1.py index 91354570..bccd8f74 100644 --- a/crates/processing_pyo3/examples/Topics/Interaction/follow_1.py +++ b/crates/processing_pyo3/examples/Topics/Interaction/follow_1.py @@ -2,7 +2,7 @@ # based on code from Keith Peters. # # A line segment is pushed and pulled by the cursor. -from mewnala import * +from processing_py import * x = 100.0 y = 100.0 diff --git a/crates/processing_pyo3/examples/Topics/Interaction/follow_2.py b/crates/processing_pyo3/examples/Topics/Interaction/follow_2.py index ee0c1e9b..dccd0064 100644 --- a/crates/processing_pyo3/examples/Topics/Interaction/follow_2.py +++ b/crates/processing_pyo3/examples/Topics/Interaction/follow_2.py @@ -4,7 +4,7 @@ # A two-segmented arm follows the cursor position. The relative # angle between the segments is calculated with atan2() and the # position calculated with sin() and cos(). -from mewnala import * +from processing_py import * x = [0.0, 0.0] y = [0.0, 0.0] diff --git a/crates/processing_pyo3/examples/Topics/Interaction/follow_3.py b/crates/processing_pyo3/examples/Topics/Interaction/follow_3.py index aa2284c6..ef082076 100644 --- a/crates/processing_pyo3/examples/Topics/Interaction/follow_3.py +++ b/crates/processing_pyo3/examples/Topics/Interaction/follow_3.py @@ -4,7 +4,7 @@ # A segmented line follows the mouse. The relative angle from # each segment to the next is calculated with atan2() and the # position of the next is calculated with sin() and cos(). -from mewnala import * +from processing_py import * x = [0.0] * 20 y = [0.0] * 20 diff --git a/crates/processing_pyo3/examples/Topics/Interaction/reach_1.py b/crates/processing_pyo3/examples/Topics/Interaction/reach_1.py index aa4a4777..e506d345 100644 --- a/crates/processing_pyo3/examples/Topics/Interaction/reach_1.py +++ b/crates/processing_pyo3/examples/Topics/Interaction/reach_1.py @@ -3,7 +3,7 @@ # # The arm follows the position of the mouse by # calculating the angles with atan2(). -from mewnala import * +from processing_py import * seg_length = 80 x = 0.0 diff --git a/crates/processing_pyo3/examples/Topics/Interaction/reach_2.py b/crates/processing_pyo3/examples/Topics/Interaction/reach_2.py index d22282a1..dbeefe30 100644 --- a/crates/processing_pyo3/examples/Topics/Interaction/reach_2.py +++ b/crates/processing_pyo3/examples/Topics/Interaction/reach_2.py @@ -3,7 +3,7 @@ # # The arm follows the position of the mouse by # calculating the angles with atan2(). -from mewnala import * +from processing_py import * num_segments = 10 x = [0.0] * num_segments diff --git a/crates/processing_pyo3/examples/Topics/Interaction/reach_3.py b/crates/processing_pyo3/examples/Topics/Interaction/reach_3.py index abca6193..9374b7c1 100644 --- a/crates/processing_pyo3/examples/Topics/Interaction/reach_3.py +++ b/crates/processing_pyo3/examples/Topics/Interaction/reach_3.py @@ -3,7 +3,7 @@ # # The arm follows the position of the ball by # calculating the angles with atan2(). -from mewnala import * +from processing_py import * num_segments = 8 x = [0.0] * num_segments diff --git a/crates/processing_pyo3/examples/Topics/Interaction/tickle.py b/crates/processing_pyo3/examples/Topics/Interaction/tickle.py index 20a54971..db47c427 100644 --- a/crates/processing_pyo3/examples/Topics/Interaction/tickle.py +++ b/crates/processing_pyo3/examples/Topics/Interaction/tickle.py @@ -2,7 +2,7 @@ # # The word "tickle" jitters when the cursor hovers over. # Sometimes, it can be tickled off the screen. -from mewnala import * +from processing_py import * message = "tickle" x = 0.0 # X and Y coordinates of text diff --git a/crates/processing_pyo3/examples/Topics/Motion/bounce.py b/crates/processing_pyo3/examples/Topics/Motion/bounce.py index 83f06921..5e4364bf 100644 --- a/crates/processing_pyo3/examples/Topics/Motion/bounce.py +++ b/crates/processing_pyo3/examples/Topics/Motion/bounce.py @@ -1,7 +1,7 @@ # Bounce. # # When the shape hits the edge of the window, it reverses its direction. -from mewnala import * +from processing_py import * rad = 60 # Width of the shape xpos = 0.0 # Starting position of shape diff --git a/crates/processing_pyo3/examples/Topics/Motion/bouncy_bubbles.py b/crates/processing_pyo3/examples/Topics/Motion/bouncy_bubbles.py index 59f51c4f..10e3ca91 100644 --- a/crates/processing_pyo3/examples/Topics/Motion/bouncy_bubbles.py +++ b/crates/processing_pyo3/examples/Topics/Motion/bouncy_bubbles.py @@ -2,7 +2,7 @@ # based on code from Keith Peters. # # Multiple-object collision. -from mewnala import * +from processing_py import * num_balls = 12 spring = 0.05 diff --git a/crates/processing_pyo3/examples/Topics/Motion/brownian.py b/crates/processing_pyo3/examples/Topics/Motion/brownian.py index 9801f715..523514e5 100644 --- a/crates/processing_pyo3/examples/Topics/Motion/brownian.py +++ b/crates/processing_pyo3/examples/Topics/Motion/brownian.py @@ -1,7 +1,7 @@ # Brownian motion. # # Recording random movement as a continuous line. -from mewnala import * +from processing_py import * num = 2000 step_range = 6 diff --git a/crates/processing_pyo3/examples/Topics/Motion/circle_collision.py b/crates/processing_pyo3/examples/Topics/Motion/circle_collision.py index d5136719..3f0623b2 100644 --- a/crates/processing_pyo3/examples/Topics/Motion/circle_collision.py +++ b/crates/processing_pyo3/examples/Topics/Motion/circle_collision.py @@ -3,7 +3,7 @@ # # Based on Keith Peter's Solution in # Foundation Actionscript Animation: Making Things Move! -from mewnala import * +from processing_py import * balls = [] diff --git a/crates/processing_pyo3/examples/Topics/Motion/cubes_within_cube.py b/crates/processing_pyo3/examples/Topics/Motion/cubes_within_cube.py index c857aafa..cd0570b9 100644 --- a/crates/processing_pyo3/examples/Topics/Motion/cubes_within_cube.py +++ b/crates/processing_pyo3/examples/Topics/Motion/cubes_within_cube.py @@ -3,7 +3,7 @@ # # Collision detection against all # outer cube's surfaces. -from mewnala import * +from processing_py import * # 20 little internal cubes cubies = [] diff --git a/crates/processing_pyo3/examples/Topics/Motion/linear.py b/crates/processing_pyo3/examples/Topics/Motion/linear.py index d1ca39b7..7f67770b 100644 --- a/crates/processing_pyo3/examples/Topics/Motion/linear.py +++ b/crates/processing_pyo3/examples/Topics/Motion/linear.py @@ -4,7 +4,7 @@ # When the line moves off the edge of the window, # the variable is set to 0, which places the line # back at the bottom of the screen. -from mewnala import * +from processing_py import * a = 0.0 diff --git a/crates/processing_pyo3/examples/Topics/Motion/morph.py b/crates/processing_pyo3/examples/Topics/Motion/morph.py index 71465fce..81396461 100644 --- a/crates/processing_pyo3/examples/Topics/Motion/morph.py +++ b/crates/processing_pyo3/examples/Topics/Motion/morph.py @@ -2,7 +2,7 @@ # # Changing one shape into another by interpolating # vertices from one to another -from mewnala import * +from processing_py import * # Two lists to store the vertices for two shapes # This example assumes that each shape will have the same diff --git a/crates/processing_pyo3/examples/Topics/Motion/moving_on_curves.py b/crates/processing_pyo3/examples/Topics/Motion/moving_on_curves.py index d910ede0..a966cd1e 100644 --- a/crates/processing_pyo3/examples/Topics/Motion/moving_on_curves.py +++ b/crates/processing_pyo3/examples/Topics/Motion/moving_on_curves.py @@ -2,7 +2,7 @@ # # In this example, the circles moves along the curve y = x^4. # Click the mouse to have it move to a new position. -from mewnala import * +from processing_py import * begin_x = 20.0 # Initial x-coordinate begin_y = 10.0 # Initial y-coordinate diff --git a/crates/processing_pyo3/examples/Topics/Motion/reflection_1.py b/crates/processing_pyo3/examples/Topics/Motion/reflection_1.py index 7841fb99..f7793163 100644 --- a/crates/processing_pyo3/examples/Topics/Motion/reflection_1.py +++ b/crates/processing_pyo3/examples/Topics/Motion/reflection_1.py @@ -4,7 +4,7 @@ # Based on the equation (R = 2N(N*L)-L) where R is the # reflection vector, N is the normal, and L is the incident # vector. -from mewnala import * +from processing_py import * # Position of left hand side of floor base1 = None diff --git a/crates/processing_pyo3/examples/Topics/Motion/reflection_2.py b/crates/processing_pyo3/examples/Topics/Motion/reflection_2.py index 2a3085bd..dfd508c8 100644 --- a/crates/processing_pyo3/examples/Topics/Motion/reflection_2.py +++ b/crates/processing_pyo3/examples/Topics/Motion/reflection_2.py @@ -3,7 +3,7 @@ # # Based on Keith Peter's Solution in # Foundation Actionscript Animation: Making Things Move! -from mewnala import * +from processing_py import * orb = None diff --git a/crates/processing_pyo3/examples/Topics/Shaders/blur_filter.py b/crates/processing_pyo3/examples/Topics/Shaders/blur_filter.py index 93135be5..9c3bae81 100644 --- a/crates/processing_pyo3/examples/Topics/Shaders/blur_filter.py +++ b/crates/processing_pyo3/examples/Topics/Shaders/blur_filter.py @@ -3,7 +3,7 @@ # Change the default shader to apply a simple, custom blur filter. # # Press the mouse to switch between the custom and default shader. -from mewnala import * +from processing_py import * blur = None diff --git a/crates/processing_pyo3/examples/Topics/Shaders/conway.py b/crates/processing_pyo3/examples/Topics/Shaders/conway.py index 93a7902d..6a75f01f 100644 --- a/crates/processing_pyo3/examples/Topics/Shaders/conway.py +++ b/crates/processing_pyo3/examples/Topics/Shaders/conway.py @@ -2,7 +2,7 @@ # http://glsl.heroku.com/e#207.3 # Exemplifies the use of the previous frame's pixels in the shader: a # filter samples the canvas as it was before the filter ran. -from mewnala import * +from processing_py import * conway = None pg = None diff --git a/crates/processing_pyo3/examples/Topics/Shaders/custom_blend.py b/crates/processing_pyo3/examples/Topics/Shaders/custom_blend.py index 1c9ea7f9..067bb6c4 100644 --- a/crates/processing_pyo3/examples/Topics/Shaders/custom_blend.py +++ b/crates/processing_pyo3/examples/Topics/Shaders/custom_blend.py @@ -12,12 +12,12 @@ # fragment shader. # # This example shows how custom blend shaders can be loaded and used in -# mewnala. +# processing_py. # For detailed information on how to implement Photoshop-like blending modes, # check the following pages (a bit old but still useful): # http://www.pegtop.net/delphi/articles/blendmodes/index.htm # http://mouaif.wordpress.com/2009/01/05/photoshop-math-with-glsl-shaders/ -from mewnala import * +from processing_py import * dest_image = None src_image = None diff --git a/crates/processing_pyo3/examples/Topics/Shaders/deform.py b/crates/processing_pyo3/examples/Topics/Shaders/deform.py index cc61bc96..f14b94ac 100644 --- a/crates/processing_pyo3/examples/Topics/Shaders/deform.py +++ b/crates/processing_pyo3/examples/Topics/Shaders/deform.py @@ -4,7 +4,7 @@ # Ported from the webGL version available in ShaderToy: # http://www.iquilezles.org/apps/shadertoy/ # (Look for Deform under the Plane Deformations Presets) -from mewnala import * +from processing_py import * tex = None deform = None diff --git a/crates/processing_pyo3/examples/Topics/Shaders/edge_detect.py b/crates/processing_pyo3/examples/Topics/Shaders/edge_detect.py index ee78fe16..0a0669c0 100644 --- a/crates/processing_pyo3/examples/Topics/Shaders/edge_detect.py +++ b/crates/processing_pyo3/examples/Topics/Shaders/edge_detect.py @@ -3,7 +3,7 @@ # Change the default shader to apply a simple, custom edge detection filter. # # Press the mouse to switch between the custom and default shader. -from mewnala import * +from processing_py import * edges = None img = None diff --git a/crates/processing_pyo3/examples/Topics/Shaders/edge_filter.py b/crates/processing_pyo3/examples/Topics/Shaders/edge_filter.py index cf7c9066..a879708c 100644 --- a/crates/processing_pyo3/examples/Topics/Shaders/edge_filter.py +++ b/crates/processing_pyo3/examples/Topics/Shaders/edge_filter.py @@ -3,7 +3,7 @@ # Apply a custom shader to the filter() function to affect the geometry drawn to the screen. # # Press the mouse to turn the filter on and off. -from mewnala import * +from processing_py import * edges = None apply_filter = True diff --git a/crates/processing_pyo3/examples/Topics/Shaders/glossy_fish_eye.py b/crates/processing_pyo3/examples/Topics/Shaders/glossy_fish_eye.py index 167c0289..20bef1fe 100644 --- a/crates/processing_pyo3/examples/Topics/Shaders/glossy_fish_eye.py +++ b/crates/processing_pyo3/examples/Topics/Shaders/glossy_fish_eye.py @@ -3,7 +3,7 @@ # A fish-eye shader is used on the main surface and # a glossy specular reflection shader is used on the # offscreen canvas. -from mewnala import * +from processing_py import * fisheye = None glossy = None diff --git a/crates/processing_pyo3/examples/Topics/Shaders/image_mask.py b/crates/processing_pyo3/examples/Topics/Shaders/image_mask.py index 33c95de3..47e52abf 100644 --- a/crates/processing_pyo3/examples/Topics/Shaders/image_mask.py +++ b/crates/processing_pyo3/examples/Topics/Shaders/image_mask.py @@ -1,7 +1,7 @@ # Image Mask # # Move the mouse to reveal the image through the dynamic mask. -from mewnala import * +from processing_py import * mask_shader = None src_image = None diff --git a/crates/processing_pyo3/examples/Topics/Shaders/infinite_tiles.py b/crates/processing_pyo3/examples/Topics/Shaders/infinite_tiles.py index 717e4120..18d30304 100644 --- a/crates/processing_pyo3/examples/Topics/Shaders/infinite_tiles.py +++ b/crates/processing_pyo3/examples/Topics/Shaders/infinite_tiles.py @@ -1,6 +1,6 @@ # Display endless moving background using a tile texture. # Contributed by martiSteiger -from mewnala import * +from processing_py import * tile_texture = None tile_shader = None diff --git a/crates/processing_pyo3/examples/Topics/Shaders/landscape.py b/crates/processing_pyo3/examples/Topics/Shaders/landscape.py index 99555585..b0dbe3a2 100644 --- a/crates/processing_pyo3/examples/Topics/Shaders/landscape.py +++ b/crates/processing_pyo3/examples/Topics/Shaders/landscape.py @@ -3,7 +3,7 @@ # Created by inigo quilez - iq/2013 # License Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. # Processing port by Raphaël de Courville. -from mewnala import * +from processing_py import * landscape = None @@ -14,7 +14,7 @@ def setup(): no_stroke() # This WESL code shows how to use shaders from - # shadertoy in mewnala with minimal changes. + # shadertoy in processing_py with minimal changes. landscape = load_shader("data/landscape.wesl") diff --git a/crates/processing_pyo3/examples/Topics/Shaders/monjori.py b/crates/processing_pyo3/examples/Topics/Shaders/monjori.py index 3b1cd98e..00841057 100644 --- a/crates/processing_pyo3/examples/Topics/Shaders/monjori.py +++ b/crates/processing_pyo3/examples/Topics/Shaders/monjori.py @@ -5,7 +5,7 @@ # Ported from the webGL version available in ShaderToy: # http://www.iquilezles.org/apps/shadertoy/ # (Look for Monjori under the Plane Deformations Presets) -from mewnala import * +from processing_py import * monjori = None diff --git a/crates/processing_pyo3/examples/Topics/Shaders/nebula.py b/crates/processing_pyo3/examples/Topics/Shaders/nebula.py index d6412dda..d8522aea 100644 --- a/crates/processing_pyo3/examples/Topics/Shaders/nebula.py +++ b/crates/processing_pyo3/examples/Topics/Shaders/nebula.py @@ -3,7 +3,7 @@ # From CoffeeBreakStudios.com (CBS) # Ported from the webGL version in GLSL Sandbox: # http://glsl.heroku.com/e#3265.2 -from mewnala import * +from processing_py import * nebula = None diff --git a/crates/processing_pyo3/examples/Topics/Shaders/sep_blur.py b/crates/processing_pyo3/examples/Topics/Shaders/sep_blur.py index 0104441e..10054689 100644 --- a/crates/processing_pyo3/examples/Topics/Shaders/sep_blur.py +++ b/crates/processing_pyo3/examples/Topics/Shaders/sep_blur.py @@ -4,7 +4,7 @@ # and the other vertical. # # Press the mouse to switch between the custom and default shader. -from mewnala import * +from processing_py import * blur = None src = None diff --git a/crates/processing_pyo3/examples/Topics/Shaders/toon_shading.py b/crates/processing_pyo3/examples/Topics/Shaders/toon_shading.py index 2797a55c..6e93e539 100644 --- a/crates/processing_pyo3/examples/Topics/Shaders/toon_shading.py +++ b/crates/processing_pyo3/examples/Topics/Shaders/toon_shading.py @@ -4,7 +4,7 @@ # to apply a "toon" effect on the scene. Based on the glsl tutorial # from lighthouse 3D: # http://www.lighthouse3d.com/tutorials/glsl-tutorial/toon-shader-version-ii/ -from mewnala import * +from processing_py import * toon = None plain = None diff --git a/crates/processing_pyo3/examples/Topics/Simulate/flocking.py b/crates/processing_pyo3/examples/Topics/Simulate/flocking.py index 8a64be39..33e97d9b 100644 --- a/crates/processing_pyo3/examples/Topics/Simulate/flocking.py +++ b/crates/processing_pyo3/examples/Topics/Simulate/flocking.py @@ -6,7 +6,7 @@ # rules of avoidance, alignment, and coherence. # # Click the mouse to add a new boid. -from mewnala import * +from processing_py import * flock = None diff --git a/crates/processing_pyo3/examples/Topics/Simulate/forces_with_vectors.py b/crates/processing_pyo3/examples/Topics/Simulate/forces_with_vectors.py index 91e033d2..92ce5292 100644 --- a/crates/processing_pyo3/examples/Topics/Simulate/forces_with_vectors.py +++ b/crates/processing_pyo3/examples/Topics/Simulate/forces_with_vectors.py @@ -4,7 +4,7 @@ # Demonstration of multiple forces acting on bodies. # Bodies experience gravity continuously and fluid # resistance when in "water". -from mewnala import * +from processing_py import * # Ten moving bodies movers = [] diff --git a/crates/processing_pyo3/examples/Topics/Simulate/gravitational_attraction_3d.py b/crates/processing_pyo3/examples/Topics/Simulate/gravitational_attraction_3d.py index 8181baf0..f2dbc72b 100644 --- a/crates/processing_pyo3/examples/Topics/Simulate/gravitational_attraction_3d.py +++ b/crates/processing_pyo3/examples/Topics/Simulate/gravitational_attraction_3d.py @@ -11,7 +11,7 @@ # For the basics of working with PVector, see # http://processing.org/learning/pvector/ # as well as examples in Topics/Vectors/ -from mewnala import * +from processing_py import * # A bunch of planets planets = [] diff --git a/crates/processing_pyo3/examples/Topics/Simulate/multiple_particle_systems.py b/crates/processing_pyo3/examples/Topics/Simulate/multiple_particle_systems.py index deb21f82..c887f736 100644 --- a/crates/processing_pyo3/examples/Topics/Simulate/multiple_particle_systems.py +++ b/crates/processing_pyo3/examples/Topics/Simulate/multiple_particle_systems.py @@ -7,7 +7,7 @@ # Each burst is one instance of a particle system # with Particles and CrazyParticles (a subclass of Particle). # Note use of Inheritance and Polymorphism. -from mewnala import * +from processing_py import * systems = [] diff --git a/crates/processing_pyo3/examples/Topics/Simulate/simple_particle_system.py b/crates/processing_pyo3/examples/Topics/Simulate/simple_particle_system.py index b5829bf3..3510d033 100644 --- a/crates/processing_pyo3/examples/Topics/Simulate/simple_particle_system.py +++ b/crates/processing_pyo3/examples/Topics/Simulate/simple_particle_system.py @@ -5,7 +5,7 @@ # fall with gravity, and fade out over time. # A ParticleSystem object manages a variable size # list of particles. -from mewnala import * +from processing_py import * ps = None diff --git a/crates/processing_pyo3/examples/Topics/Simulate/smoke_particle_system.py b/crates/processing_pyo3/examples/Topics/Simulate/smoke_particle_system.py index b7ed6381..05e13ad9 100644 --- a/crates/processing_pyo3/examples/Topics/Simulate/smoke_particle_system.py +++ b/crates/processing_pyo3/examples/Topics/Simulate/smoke_particle_system.py @@ -3,7 +3,7 @@ # # A basic smoke effect using a particle system. Each particle # is rendered as an alpha masked image. -from mewnala import * +from processing_py import * ps = None diff --git a/crates/processing_pyo3/examples/Topics/Simulate/soft_body.py b/crates/processing_pyo3/examples/Topics/Simulate/soft_body.py index 10369012..71f07edc 100644 --- a/crates/processing_pyo3/examples/Topics/Simulate/soft_body.py +++ b/crates/processing_pyo3/examples/Topics/Simulate/soft_body.py @@ -2,7 +2,7 @@ # by Ira Greenberg. # # Softbody dynamics simulation using curve_vertex() and curve_tightness(). -from mewnala import * +from processing_py import * # center point center_x = 0.0 diff --git a/crates/processing_pyo3/examples/Topics/Textures/texture_cube.py b/crates/processing_pyo3/examples/Topics/Textures/texture_cube.py index 557d95bb..748792dd 100644 --- a/crates/processing_pyo3/examples/Topics/Textures/texture_cube.py +++ b/crates/processing_pyo3/examples/Topics/Textures/texture_cube.py @@ -3,7 +3,7 @@ # # Drag mouse to rotate cube. Demonstrates use of u/v coords on a # geometry and the effect of texture(). -from mewnala import * +from processing_py import * tex = None cube = None diff --git a/crates/processing_pyo3/examples/Topics/Textures/texture_cylinder.py b/crates/processing_pyo3/examples/Topics/Textures/texture_cylinder.py index 7ac1824e..6726fd5c 100644 --- a/crates/processing_pyo3/examples/Topics/Textures/texture_cylinder.py +++ b/crates/processing_pyo3/examples/Topics/Textures/texture_cylinder.py @@ -1,7 +1,7 @@ # Texture Cylinder. # # Load an image and draw it onto a cylinder and a quad. -from mewnala import * +from processing_py import * tube_res = 32 tube_x = [] diff --git a/crates/processing_pyo3/examples/Topics/Textures/texture_quad.py b/crates/processing_pyo3/examples/Topics/Textures/texture_quad.py index 772981cf..3a52d9f5 100644 --- a/crates/processing_pyo3/examples/Topics/Textures/texture_quad.py +++ b/crates/processing_pyo3/examples/Topics/Textures/texture_quad.py @@ -2,7 +2,7 @@ # # Load an image and draw it onto a quad. The texture() function sets # the texture image. The uv() function maps the image to the geometry. -from mewnala import * +from processing_py import * img = None quad = None diff --git a/crates/processing_pyo3/examples/Topics/Textures/texture_sphere.py b/crates/processing_pyo3/examples/Topics/Textures/texture_sphere.py index 658b1d17..e43ffe41 100644 --- a/crates/processing_pyo3/examples/Topics/Textures/texture_sphere.py +++ b/crates/processing_pyo3/examples/Topics/Textures/texture_sphere.py @@ -6,7 +6,7 @@ # Original based on code by Toxi. # # A 3D textured sphere with simple rotation control. -from mewnala import * +from processing_py import * pts_w = 0 pts_h = 0 diff --git a/crates/processing_pyo3/examples/Topics/Textures/texture_triangle.py b/crates/processing_pyo3/examples/Topics/Textures/texture_triangle.py index 0c941b26..75f46053 100644 --- a/crates/processing_pyo3/examples/Topics/Textures/texture_triangle.py +++ b/crates/processing_pyo3/examples/Topics/Textures/texture_triangle.py @@ -1,7 +1,7 @@ # Texture Triangle. # # Using a rectangular image to map a texture onto a triangle. -from mewnala import * +from processing_py import * img = None tri = None diff --git a/crates/processing_pyo3/examples/Topics/Vectors/acceleration_with_vectors.py b/crates/processing_pyo3/examples/Topics/Vectors/acceleration_with_vectors.py index 72ca0d7c..7f511874 100644 --- a/crates/processing_pyo3/examples/Topics/Vectors/acceleration_with_vectors.py +++ b/crates/processing_pyo3/examples/Topics/Vectors/acceleration_with_vectors.py @@ -5,7 +5,7 @@ # A "Mover" object stores location, velocity, and # acceleration as vectors. The motion is controlled by # affecting the acceleration (in this case towards the mouse). -from mewnala import * +from processing_py import * # A Mover object mover = None diff --git a/crates/processing_pyo3/examples/Topics/Vectors/bouncing_ball.py b/crates/processing_pyo3/examples/Topics/Vectors/bouncing_ball.py index de0b8a13..803ac8f3 100644 --- a/crates/processing_pyo3/examples/Topics/Vectors/bouncing_ball.py +++ b/crates/processing_pyo3/examples/Topics/Vectors/bouncing_ball.py @@ -5,7 +5,7 @@ # of a body. This example is not object-oriented # See AccelerationWithVectors for an example of how # to simulate motion using vectors in an object. -from mewnala import * +from processing_py import * location = None # Location of shape velocity = None # Velocity of shape diff --git a/crates/processing_pyo3/examples/Topics/Vectors/vector_math.py b/crates/processing_pyo3/examples/Topics/Vectors/vector_math.py index 4a1341e7..5cb29ee1 100644 --- a/crates/processing_pyo3/examples/Topics/Vectors/vector_math.py +++ b/crates/processing_pyo3/examples/Topics/Vectors/vector_math.py @@ -4,7 +4,7 @@ # Demonstration of some basic vector math: subtraction, # normalization, scaling. Normalizing a vector sets # its length to 1. -from mewnala import * +from processing_py import * def setup(): diff --git a/crates/processing_pyo3/examples/animated_mesh.py b/crates/processing_pyo3/examples/animated_mesh.py index 934fd8b7..b0c55690 100644 --- a/crates/processing_pyo3/examples/animated_mesh.py +++ b/crates/processing_pyo3/examples/animated_mesh.py @@ -1,4 +1,4 @@ -from mewnala import * +from processing_py import * from math import sin, cos geometry = None diff --git a/crates/processing_pyo3/examples/background_image.py b/crates/processing_pyo3/examples/background_image.py index 4e29b081..9f54d8dc 100644 --- a/crates/processing_pyo3/examples/background_image.py +++ b/crates/processing_pyo3/examples/background_image.py @@ -1,4 +1,4 @@ -from mewnala import * +from processing_py import * def setup(): global i diff --git a/crates/processing_pyo3/examples/blend_modes.py b/crates/processing_pyo3/examples/blend_modes.py index fa367fad..64f8710d 100644 --- a/crates/processing_pyo3/examples/blend_modes.py +++ b/crates/processing_pyo3/examples/blend_modes.py @@ -1,4 +1,4 @@ -from mewnala import * +from processing_py import * MODES = [BLEND, ADD, SUBTRACT, DARKEST, LIGHTEST, DIFFERENCE, EXCLUSION, MULTIPLY, SCREEN, REPLACE] index = 0 diff --git a/crates/processing_pyo3/examples/box.py b/crates/processing_pyo3/examples/box.py index f9df1ded..6fdd15ef 100644 --- a/crates/processing_pyo3/examples/box.py +++ b/crates/processing_pyo3/examples/box.py @@ -1,4 +1,4 @@ -from mewnala import * +from processing_py import * angle = 0.0 diff --git a/crates/processing_pyo3/examples/camera_controllers.py b/crates/processing_pyo3/examples/camera_controllers.py index 562d5b63..3f2b6602 100644 --- a/crates/processing_pyo3/examples/camera_controllers.py +++ b/crates/processing_pyo3/examples/camera_controllers.py @@ -1,4 +1,4 @@ -from mewnala import * +from processing_py import * angle = 0.0 mode = 0 diff --git a/crates/processing_pyo3/examples/compute.py b/crates/processing_pyo3/examples/compute.py index 59d56229..d347b554 100644 --- a/crates/processing_pyo3/examples/compute.py +++ b/crates/processing_pyo3/examples/compute.py @@ -1,6 +1,6 @@ import struct -from mewnala import Graphics, Shader, Compute, Buffer +from processing_py import Graphics, Shader, Compute, Buffer g = Graphics.new_offscreen(1, 1, "", None) g.begin_draw() diff --git a/crates/processing_pyo3/examples/cuda.py b/crates/processing_pyo3/examples/cuda.py index 817f07b4..27fa01fd 100644 --- a/crates/processing_pyo3/examples/cuda.py +++ b/crates/processing_pyo3/examples/cuda.py @@ -1,4 +1,4 @@ -from mewnala import * +from processing_py import * import torch import torch.nn.functional as F import math diff --git a/crates/processing_pyo3/examples/curves.py b/crates/processing_pyo3/examples/curves.py index 60fce365..9f848a66 100644 --- a/crates/processing_pyo3/examples/curves.py +++ b/crates/processing_pyo3/examples/curves.py @@ -1,4 +1,4 @@ -from mewnala import * +from processing_py import * from math import sin, cos t = 0.0 diff --git a/crates/processing_pyo3/examples/custom_material.py b/crates/processing_pyo3/examples/custom_material.py index 9e44fc11..c02a843e 100644 --- a/crates/processing_pyo3/examples/custom_material.py +++ b/crates/processing_pyo3/examples/custom_material.py @@ -1,4 +1,4 @@ -from mewnala import * +from processing_py import * mat = None diff --git a/crates/processing_pyo3/examples/feedback.py b/crates/processing_pyo3/examples/feedback.py index 22eb040b..2e17f437 100644 --- a/crates/processing_pyo3/examples/feedback.py +++ b/crates/processing_pyo3/examples/feedback.py @@ -19,7 +19,7 @@ faded feedback; - the canvas persists, closing the loop. """ -from mewnala import * +from processing_py import * from math import sin, cos t = 0.0 diff --git a/crates/processing_pyo3/examples/flocking.py b/crates/processing_pyo3/examples/flocking.py index ea87b8f7..cbc926dd 100644 --- a/crates/processing_pyo3/examples/flocking.py +++ b/crates/processing_pyo3/examples/flocking.py @@ -7,7 +7,7 @@ # rules of avoidance, alignment, and coherence. # # Click the mouse to add a new boid. -from mewnala import * +from processing_py import * flock = None diff --git a/crates/processing_pyo3/examples/flocking_duck.py b/crates/processing_pyo3/examples/flocking_duck.py index f53d1030..7541dc21 100644 --- a/crates/processing_pyo3/examples/flocking_duck.py +++ b/crates/processing_pyo3/examples/flocking_duck.py @@ -3,7 +3,7 @@ # in a `home` attribute; a homing force that is negligible near home but # grows quadratically with distance lets the boids swirl and flock locally # while the swarm as a whole never loses the duck's shape. -from mewnala import * +from processing_py import * from math import cos, sin from random import uniform diff --git a/crates/processing_pyo3/examples/flocking_gpu.py b/crates/processing_pyo3/examples/flocking_gpu.py index 4b33a5a8..27259cef 100644 --- a/crates/processing_pyo3/examples/flocking_gpu.py +++ b/crates/processing_pyo3/examples/flocking_gpu.py @@ -1,6 +1,6 @@ # GPU flocking: the boids from flocking.py, built from generic particle ops # over each boid's neighbors. Nothing is read back to the CPU. -from mewnala import * +from processing_py import * from math import cos, sin from random import uniform diff --git a/crates/processing_pyo3/examples/geometry_methods.py b/crates/processing_pyo3/examples/geometry_methods.py index c281a4ed..1e4c942a 100644 --- a/crates/processing_pyo3/examples/geometry_methods.py +++ b/crates/processing_pyo3/examples/geometry_methods.py @@ -1,4 +1,4 @@ -from mewnala import * +from processing_py import * geometry = None diff --git a/crates/processing_pyo3/examples/gltf_load.py b/crates/processing_pyo3/examples/gltf_load.py index b96d16f9..141badce 100644 --- a/crates/processing_pyo3/examples/gltf_load.py +++ b/crates/processing_pyo3/examples/gltf_load.py @@ -1,4 +1,4 @@ -from mewnala import * +from processing_py import * import math gltf = None diff --git a/crates/processing_pyo3/examples/input.py b/crates/processing_pyo3/examples/input.py index a1776fec..baf76b30 100644 --- a/crates/processing_pyo3/examples/input.py +++ b/crates/processing_pyo3/examples/input.py @@ -1,4 +1,4 @@ -from mewnala import * +from processing_py import * def setup(): size(400, 400) diff --git a/crates/processing_pyo3/examples/lights.py b/crates/processing_pyo3/examples/lights.py index f5d4d795..ca33f6e1 100644 --- a/crates/processing_pyo3/examples/lights.py +++ b/crates/processing_pyo3/examples/lights.py @@ -1,4 +1,4 @@ -from mewnala import * +from processing_py import * angle = 0.0 diff --git a/crates/processing_pyo3/examples/materials.py b/crates/processing_pyo3/examples/materials.py index 1924fb59..9ebf3f23 100644 --- a/crates/processing_pyo3/examples/materials.py +++ b/crates/processing_pyo3/examples/materials.py @@ -1,4 +1,4 @@ -from mewnala import * +from processing_py import * mat = None diff --git a/crates/processing_pyo3/examples/midi.py b/crates/processing_pyo3/examples/midi.py index df8eef8f..00d3ddd4 100644 --- a/crates/processing_pyo3/examples/midi.py +++ b/crates/processing_pyo3/examples/midi.py @@ -1,4 +1,4 @@ -from mewnala import * +from processing_py import * import random def setup(): diff --git a/crates/processing_pyo3/examples/multi_window.py b/crates/processing_pyo3/examples/multi_window.py index 92316716..4fe0d331 100644 --- a/crates/processing_pyo3/examples/multi_window.py +++ b/crates/processing_pyo3/examples/multi_window.py @@ -1,4 +1,4 @@ -from mewnala import * +from processing_py import * from math import sin, cos, pi second_window = None diff --git a/crates/processing_pyo3/examples/particles_animated.py b/crates/processing_pyo3/examples/particles_animated.py index 035df999..37fbfece 100644 --- a/crates/processing_pyo3/examples/particles_animated.py +++ b/crates/processing_pyo3/examples/particles_animated.py @@ -1,4 +1,4 @@ -from mewnala import * +from processing_py import * p = None sphere = None diff --git a/crates/processing_pyo3/examples/particles_basic.py b/crates/processing_pyo3/examples/particles_basic.py index d94b64ec..c05cb1a3 100644 --- a/crates/processing_pyo3/examples/particles_basic.py +++ b/crates/processing_pyo3/examples/particles_basic.py @@ -1,4 +1,4 @@ -from mewnala import * +from processing_py import * p = None particle = None diff --git a/crates/processing_pyo3/examples/particles_density.py b/crates/processing_pyo3/examples/particles_density.py index f98af0d6..e0731ec3 100644 --- a/crates/processing_pyo3/examples/particles_density.py +++ b/crates/processing_pyo3/examples/particles_density.py @@ -1,4 +1,4 @@ -from mewnala import * +from processing_py import * from random import uniform from math import cos, sin diff --git a/crates/processing_pyo3/examples/particles_emit.py b/crates/processing_pyo3/examples/particles_emit.py index 7f868b85..1e5bbb94 100644 --- a/crates/processing_pyo3/examples/particles_emit.py +++ b/crates/processing_pyo3/examples/particles_emit.py @@ -1,4 +1,4 @@ -from mewnala import * +from processing_py import * import math p = None diff --git a/crates/processing_pyo3/examples/particles_emit_gpu.py b/crates/processing_pyo3/examples/particles_emit_gpu.py index d32eb7e8..d3c4f5a2 100644 --- a/crates/processing_pyo3/examples/particles_emit_gpu.py +++ b/crates/processing_pyo3/examples/particles_emit_gpu.py @@ -1,4 +1,4 @@ -from mewnala import * +from processing_py import * import math p = None diff --git a/crates/processing_pyo3/examples/particles_from_mesh.py b/crates/processing_pyo3/examples/particles_from_mesh.py index d577f41e..14f18cd6 100644 --- a/crates/processing_pyo3/examples/particles_from_mesh.py +++ b/crates/processing_pyo3/examples/particles_from_mesh.py @@ -1,4 +1,4 @@ -from mewnala import * +from processing_py import * p = None particle = None diff --git a/crates/processing_pyo3/examples/particles_gpu_surface.py b/crates/processing_pyo3/examples/particles_gpu_surface.py index 4d77b967..3b30266b 100644 --- a/crates/processing_pyo3/examples/particles_gpu_surface.py +++ b/crates/processing_pyo3/examples/particles_gpu_surface.py @@ -1,4 +1,4 @@ -from mewnala import * +from processing_py import * from math import cos, sin NX, NY = 160, 160 diff --git a/crates/processing_pyo3/examples/particles_gpu_surface_lit.py b/crates/processing_pyo3/examples/particles_gpu_surface_lit.py index a1db5871..4ce8698b 100644 --- a/crates/processing_pyo3/examples/particles_gpu_surface_lit.py +++ b/crates/processing_pyo3/examples/particles_gpu_surface_lit.py @@ -1,4 +1,4 @@ -from mewnala import * +from processing_py import * from math import cos, sin NX, NY = 200, 200 diff --git a/crates/processing_pyo3/examples/particles_lifecycle.py b/crates/processing_pyo3/examples/particles_lifecycle.py index 8301fd81..faedfff8 100644 --- a/crates/processing_pyo3/examples/particles_lifecycle.py +++ b/crates/processing_pyo3/examples/particles_lifecycle.py @@ -1,4 +1,4 @@ -from mewnala import * +from processing_py import * import math p = None diff --git a/crates/processing_pyo3/examples/particles_lines.py b/crates/processing_pyo3/examples/particles_lines.py index 20083fa2..cf8ee1bb 100644 --- a/crates/processing_pyo3/examples/particles_lines.py +++ b/crates/processing_pyo3/examples/particles_lines.py @@ -1,4 +1,4 @@ -from mewnala import * +from processing_py import * from math import cos, sin, tau N = 3000 diff --git a/crates/processing_pyo3/examples/particles_lissajous.py b/crates/processing_pyo3/examples/particles_lissajous.py index 190bee92..e1c46aaa 100644 --- a/crates/processing_pyo3/examples/particles_lissajous.py +++ b/crates/processing_pyo3/examples/particles_lissajous.py @@ -1,4 +1,4 @@ -from mewnala import * +from processing_py import * from math import cos, sin ALPHA_OVER = BlendMode( diff --git a/crates/processing_pyo3/examples/particles_noise.py b/crates/processing_pyo3/examples/particles_noise.py index 1d558e98..3f1284a3 100644 --- a/crates/processing_pyo3/examples/particles_noise.py +++ b/crates/processing_pyo3/examples/particles_noise.py @@ -1,4 +1,4 @@ -from mewnala import * +from processing_py import * p = None particle = None diff --git a/crates/processing_pyo3/examples/particles_plexus.py b/crates/processing_pyo3/examples/particles_plexus.py index 5c740427..8127474d 100644 --- a/crates/processing_pyo3/examples/particles_plexus.py +++ b/crates/processing_pyo3/examples/particles_plexus.py @@ -1,4 +1,4 @@ -from mewnala import * +from processing_py import * from random import uniform, seed from math import cos, sin diff --git a/crates/processing_pyo3/examples/particles_points.py b/crates/processing_pyo3/examples/particles_points.py index f1b0befe..b06c149e 100644 --- a/crates/processing_pyo3/examples/particles_points.py +++ b/crates/processing_pyo3/examples/particles_points.py @@ -1,4 +1,4 @@ -from mewnala import * +from processing_py import * from math import cos, sin from random import uniform diff --git a/crates/processing_pyo3/examples/particles_scatter_volume.py b/crates/processing_pyo3/examples/particles_scatter_volume.py index 4ff5ad93..bca65628 100644 --- a/crates/processing_pyo3/examples/particles_scatter_volume.py +++ b/crates/processing_pyo3/examples/particles_scatter_volume.py @@ -1,4 +1,4 @@ -from mewnala import * +from processing_py import * CAPACITY = 30_000 BURST = 250 diff --git a/crates/processing_pyo3/examples/particles_sphere.py b/crates/processing_pyo3/examples/particles_sphere.py index c515171e..0d79a4fb 100644 --- a/crates/processing_pyo3/examples/particles_sphere.py +++ b/crates/processing_pyo3/examples/particles_sphere.py @@ -1,7 +1,7 @@ -from mewnala import * +from processing_py import * from math import cos, sin -from mewnala.mewnala import TRIANGLES +from processing_py.processing_py import TRIANGLES p = None rest = None diff --git a/crates/processing_pyo3/examples/particles_stress.py b/crates/processing_pyo3/examples/particles_stress.py index 68d7a8ff..8db5085b 100644 --- a/crates/processing_pyo3/examples/particles_stress.py +++ b/crates/processing_pyo3/examples/particles_stress.py @@ -1,4 +1,4 @@ -from mewnala import * +from processing_py import * GRID = 150 SPACING = 1.0 diff --git a/crates/processing_pyo3/examples/particles_surface.py b/crates/processing_pyo3/examples/particles_surface.py index 7a33cec0..6a204c38 100644 --- a/crates/processing_pyo3/examples/particles_surface.py +++ b/crates/processing_pyo3/examples/particles_surface.py @@ -1,4 +1,4 @@ -from mewnala import * +from processing_py import * from math import cos, sin, tau SEGMENTS = 400 diff --git a/crates/processing_pyo3/examples/primitives_2d.py b/crates/processing_pyo3/examples/primitives_2d.py index ee8f9a40..b679340f 100644 --- a/crates/processing_pyo3/examples/primitives_2d.py +++ b/crates/processing_pyo3/examples/primitives_2d.py @@ -1,4 +1,4 @@ -from mewnala import * +from processing_py import * from math import pi, sin, cos t = 0.0 diff --git a/crates/processing_pyo3/examples/primitives_3d.py b/crates/processing_pyo3/examples/primitives_3d.py index 243064df..919883d2 100644 --- a/crates/processing_pyo3/examples/primitives_3d.py +++ b/crates/processing_pyo3/examples/primitives_3d.py @@ -1,4 +1,4 @@ -from mewnala import * +from processing_py import * t = 0.0 diff --git a/crates/processing_pyo3/examples/rectangle.py b/crates/processing_pyo3/examples/rectangle.py index e190c2d6..6bfd6471 100644 --- a/crates/processing_pyo3/examples/rectangle.py +++ b/crates/processing_pyo3/examples/rectangle.py @@ -1,4 +1,4 @@ -from mewnala import * +from processing_py import * def setup(): size(800, 600) diff --git a/crates/processing_pyo3/examples/shapes.py b/crates/processing_pyo3/examples/shapes.py index 0df03cfe..163370dc 100644 --- a/crates/processing_pyo3/examples/shapes.py +++ b/crates/processing_pyo3/examples/shapes.py @@ -1,4 +1,4 @@ -from mewnala import * +from processing_py import * from math import pi, sin, cos t = 0.0 diff --git a/crates/processing_pyo3/examples/style_stack.py b/crates/processing_pyo3/examples/style_stack.py index a2639820..2bf3623e 100644 --- a/crates/processing_pyo3/examples/style_stack.py +++ b/crates/processing_pyo3/examples/style_stack.py @@ -2,7 +2,7 @@ # # A grid of spinners. Each cell sets up its own transform and color inside # push()/pop(), so nothing leaks to its neighbours. -from mewnala import * +from processing_py import * from math import sin GRID = 6 diff --git a/crates/processing_pyo3/examples/test.py b/crates/processing_pyo3/examples/test.py index 53671439..0bf4b016 100644 --- a/crates/processing_pyo3/examples/test.py +++ b/crates/processing_pyo3/examples/test.py @@ -1,4 +1,4 @@ -from mewnala import * +from processing_py import * def setup(): diff --git a/crates/processing_pyo3/examples/test_jupyter.ipynb b/crates/processing_pyo3/examples/test_jupyter.ipynb index a6ef1e06..58591df1 100644 --- a/crates/processing_pyo3/examples/test_jupyter.ipynb +++ b/crates/processing_pyo3/examples/test_jupyter.ipynb @@ -8,7 +8,7 @@ }, "outputs": [], "source": [ - "from mewnala import *" + "from processing_py import *" ] }, { diff --git a/crates/processing_pyo3/examples/test_jupyter_3d.ipynb b/crates/processing_pyo3/examples/test_jupyter_3d.ipynb index 26c2ef7f..38b282cd 100644 --- a/crates/processing_pyo3/examples/test_jupyter_3d.ipynb +++ b/crates/processing_pyo3/examples/test_jupyter_3d.ipynb @@ -18,7 +18,7 @@ } ], "source": [ - "from mewnala import *\n", + "from processing_py import *\n", "size(200, 100)\n", "mode_3d()\n", "\n", diff --git a/crates/processing_pyo3/examples/text.py b/crates/processing_pyo3/examples/text.py index 6bbc5fe4..6295eed9 100644 --- a/crates/processing_pyo3/examples/text.py +++ b/crates/processing_pyo3/examples/text.py @@ -1,5 +1,5 @@ """Drawing type through the global text API (text, text_size, text_align, ...).""" -from mewnala import * +from processing_py import * from math import sin diff --git a/crates/processing_pyo3/examples/window_controls.py b/crates/processing_pyo3/examples/window_controls.py index cef60bd5..e1873467 100644 --- a/crates/processing_pyo3/examples/window_controls.py +++ b/crates/processing_pyo3/examples/window_controls.py @@ -1,4 +1,4 @@ -from mewnala import * +from processing_py import * TITLES = ["window controls", "🪟 hello", "still alive"] POSITIONS = [(100, 100), (300, 200), (50, 50)] diff --git a/crates/processing_pyo3/mewnala/__init__.py b/crates/processing_pyo3/processing_py/__init__.py similarity index 93% rename from crates/processing_pyo3/mewnala/__init__.py rename to crates/processing_pyo3/processing_py/__init__.py index 44d2cbae..d126294c 100644 --- a/crates/processing_pyo3/mewnala/__init__.py +++ b/crates/processing_pyo3/processing_py/__init__.py @@ -1,15 +1,15 @@ -from .mewnala import * +from .processing_py import * -# `from .mewnala import *` above binds Processing globals that shadow Python +# `from .processing_py import *` above binds Processing globals that shadow Python # builtins (e.g. `set`, `filter`, `get`), so this module reaches builtins it needs # through an explicit alias rather than the shadowed names. import builtins as _builtins # re-export native submodules that have no Python counterpart as submodules of -# this module, so users can import from `mewnala.color` without knowing about +# this module, so users can import from `processing_py.color` without knowing about # the internal structure of the native module. import sys as _sys -from . import mewnala as _native +from . import processing_py as _native _color = getattr(_native, "color", None) if _color is not None: diff --git a/crates/processing_pyo3/mewnala/math.py b/crates/processing_pyo3/processing_py/math.py similarity index 98% rename from crates/processing_pyo3/mewnala/math.py rename to crates/processing_pyo3/processing_py/math.py index b910500a..2ae3d903 100644 --- a/crates/processing_pyo3/mewnala/math.py +++ b/crates/processing_pyo3/processing_py/math.py @@ -1,6 +1,6 @@ """Processing math methods and vector/quaternion types.""" import math as _math -from .mewnala import math as _native_math +from .processing_py import math as _native_math # extend native math so glob imports work for _name in dir(_native_math): diff --git a/crates/processing_pyo3/mewnala/py.typed b/crates/processing_pyo3/processing_py/py.typed similarity index 100% rename from crates/processing_pyo3/mewnala/py.typed rename to crates/processing_pyo3/processing_py/py.typed diff --git a/crates/processing_pyo3/pyproject.toml b/crates/processing_pyo3/pyproject.toml index dc68485e..5f8ff79b 100644 --- a/crates/processing_pyo3/pyproject.toml +++ b/crates/processing_pyo3/pyproject.toml @@ -3,7 +3,7 @@ requires = ["maturin>=1.10,<2.0"] build-backend = "maturin" [project] -name = "mewnala" +name = "processing-py" requires-python = ">=3.10" description = "Python bindings for libprocessing — a creative coding library inspired by Processing" license = "MIT OR Apache-2.0" @@ -44,10 +44,10 @@ docs = [ [tool.maturin] manifest-path = "Cargo.toml" include = [ - { path = "mewnala/*.pyi", format = "sdist" }, - { path = "mewnala/*.pyi", format = "wheel" }, - { path = "mewnala/py.typed", format = "sdist" }, - { path = "mewnala/py.typed", format = "wheel" }, + { path = "processing_py/*.pyi", format = "sdist" }, + { path = "processing_py/*.pyi", format = "wheel" }, + { path = "processing_py/py.typed", format = "sdist" }, + { path = "processing_py/py.typed", format = "wheel" }, ] [tool.uv] diff --git a/crates/processing_pyo3/src/lib.rs b/crates/processing_pyo3/src/lib.rs index 01012978..986c7b48 100644 --- a/crates/processing_pyo3/src/lib.rs +++ b/crates/processing_pyo3/src/lib.rs @@ -438,7 +438,7 @@ fn detect_environment(module: &Bound<'_, PyModule>) -> PyResult { } #[pymodule] -pub mod mewnala { +pub mod processing_py { use super::*; #[pymodule_export] @@ -543,7 +543,7 @@ pub mod mewnala { } } - // top-level so `from mewnala import *` exposes hsva/srgb/etc. directly; + // top-level so `from processing_py import *` exposes hsva/srgb/etc. directly; // a `color` submodule would clash with the `color()` function #[pyfunction] diff --git a/crates/processing_pyo3/src/python/ipython_post_execute.py b/crates/processing_pyo3/src/python/ipython_post_execute.py index 29f0344f..fbc62cb2 100644 --- a/crates/processing_pyo3/src/python/ipython_post_execute.py +++ b/crates/processing_pyo3/src/python/ipython_post_execute.py @@ -1,10 +1,10 @@ -import mewnala +import processing_py def _processing_post_execute(result): - mewnala._present() - if not mewnala._poll_events(): - mewnala._graphics = None + processing_py._present() + if not processing_py._poll_events(): + processing_py._graphics = None return - mewnala._tick(get_ipython().user_ns) + processing_py._tick(get_ipython().user_ns) get_ipython().events.register('post_run_cell', _processing_post_execute) diff --git a/crates/processing_pyo3/src/python/jupyter_post_execute.py b/crates/processing_pyo3/src/python/jupyter_post_execute.py index 9a784720..c5579bef 100644 --- a/crates/processing_pyo3/src/python/jupyter_post_execute.py +++ b/crates/processing_pyo3/src/python/jupyter_post_execute.py @@ -1,10 +1,10 @@ -import mewnala +import processing_py import IPython.display as _ipy_display def _processing_post_execute(result): - mewnala._present() - mewnala._tick(get_ipython().user_ns) - png_data = mewnala._readback_png() + processing_py._present() + processing_py._tick(get_ipython().user_ns) + png_data = processing_py._readback_png() if png_data is not None: _ipy_display.display(_ipy_display.Image(data=bytes(png_data))) diff --git a/crates/processing_pyo3/src/python/register_inputhook.py b/crates/processing_pyo3/src/python/register_inputhook.py index aa11a17e..0c928d16 100644 --- a/crates/processing_pyo3/src/python/register_inputhook.py +++ b/crates/processing_pyo3/src/python/register_inputhook.py @@ -1,15 +1,15 @@ -import mewnala +import processing_py import time import traceback from IPython.terminal.pt_inputhooks import register def _processing_inputhook(context): while not context.input_is_ready(): - if not mewnala._poll_events(): - mewnala._graphics = None + if not processing_py._poll_events(): + processing_py._graphics = None break try: - mewnala._tick(get_ipython().user_ns) + processing_py._tick(get_ipython().user_ns) except Exception: traceback.print_exc() time.sleep(1.0 / 60.0) diff --git a/crates/processing_pyo3/uv.lock b/crates/processing_pyo3/uv.lock index 72334126..cdaa837b 100644 --- a/crates/processing_pyo3/uv.lock +++ b/crates/processing_pyo3/uv.lock @@ -1128,7 +1128,7 @@ wheels = [ ] [[package]] -name = "mewnala" +name = "processing-py" source = { editable = "." } dependencies = [ { name = "ipython", version = "8.39.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" }, diff --git a/crates/processing_render/Cargo.toml b/crates/processing_render/Cargo.toml index 6dddeabe..2c9c750e 100644 --- a/crates/processing_render/Cargo.toml +++ b/crates/processing_render/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "processing_render" -version = "0.0.5" +version = "0.4.0" edition = "2024" [lints] diff --git a/crates/processing_wasm/Cargo.toml b/crates/processing_wasm/Cargo.toml index 80ec663a..721c8ef4 100644 --- a/crates/processing_wasm/Cargo.toml +++ b/crates/processing_wasm/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "processing_wasm" -version = "0.0.5" +version = "0.4.0" edition = "2024" [lib] diff --git a/crates/processing_webcam/Cargo.toml b/crates/processing_webcam/Cargo.toml index 5dbc3d60..7cb2a4ab 100644 --- a/crates/processing_webcam/Cargo.toml +++ b/crates/processing_webcam/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "processing_webcam" -version = "0.0.5" +version = "0.4.0" edition = "2024" [lints] diff --git a/docs/gen_ref_pages.py b/docs/gen_ref_pages.py index ff582e0e..fb575275 100644 --- a/docs/gen_ref_pages.py +++ b/docs/gen_ref_pages.py @@ -7,9 +7,9 @@ f.write(readme) modules = { - "reference/index.md": ("API Reference", "mewnala", {"show_submodules": False}), - "reference/math.md": ("mewnala.math", "mewnala.math", {}), - # "reference/color.md": ("mewnala.color", "mewnala.color", {}), + "reference/index.md": ("API Reference", "processing_py", {"show_submodules": False}), + "reference/math.md": ("processing_py.math", "processing_py.math", {}), + # "reference/color.md": ("processing_py.color", "processing_py.color", {}), } for path, (title, module, options) in modules.items(): diff --git a/mkdocs.yml b/mkdocs.yml index 38330f27..c3654f33 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,5 +1,5 @@ -site_name: mewnala -site_description: Mewnala, I choose you! +site_name: processing-py +site_description: Python bindings for libprocessing site_url: https://processing.github.io/libprocessing/ repo_url: https://github.com/processing/libprocessing repo_name: processing/libprocessing diff --git a/tools/generate_stubs/Cargo.toml b/tools/generate_stubs/Cargo.toml index ec2e5b8b..c735b05a 100644 --- a/tools/generate_stubs/Cargo.toml +++ b/tools/generate_stubs/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "generate_stubs" -version = "0.0.5" +version = "0.4.0" edition = "2024" publish = false diff --git a/tools/generate_stubs/src/main.rs b/tools/generate_stubs/src/main.rs index e16b159d..b5dafced 100644 --- a/tools/generate_stubs/src/main.rs +++ b/tools/generate_stubs/src/main.rs @@ -35,7 +35,7 @@ fn swizzle_props(dim: usize) -> Vec { }, returns: Some(Expr::Attribute { value: Box::new(Expr::Name { - id: "mewnala.math".into(), + id: "processing_py.math".into(), }), attr: format!("Vec{length}"), }), @@ -80,11 +80,11 @@ fn find_cdylib() -> PathBuf { // Platform-specific library name let lib_name = if cfg!(target_os = "macos") { - "libmewnala.dylib" + "libprocessing_py.dylib" } else if cfg!(target_os = "windows") { - "mewnala.dll" + "processing_py.dll" } else { - "libmewnala.so" + "libprocessing_py.so" }; let path = target_dir.join(lib_name); @@ -107,7 +107,7 @@ fn main() { eprintln!("Introspecting: {}", cdylib_path.display()); let mut module = - introspect_cdylib(&cdylib_path, "mewnala").expect("Failed to introspect cdylib"); + introspect_cdylib(&cdylib_path, "processing_py").expect("Failed to introspect cdylib"); module.incomplete = false; inject_swizzles(&mut module); @@ -142,7 +142,7 @@ fn main() { let output_dir = workspace_root() .join("crates") .join("processing_pyo3") - .join("mewnala"); + .join("processing_py"); for (filename, content) in &stubs { let out_path = output_dir.join(filename);