### Build and Serve WebGL2 Example (Bash) Source: https://github.com/parasyte/pixels/blob/main/examples/minimal-web/README.md Builds the project for web deployment and starts a local server to host the application. This allows you to view the WebGL2 example in your browser. ```bash cargo run-wasm --release --package minimal-web ``` -------------------------------- ### Build WebGL2 Example Only (Bash) Source: https://github.com/parasyte/pixels/blob/main/examples/minimal-web/README.md Builds the project for web deployment without starting a local server. The compiled files will be placed in the specified target directory. ```bash cargo run-wasm --release --build-only --package minimal-web ``` -------------------------------- ### Run tiny-skia-winit Example Source: https://github.com/parasyte/pixels/blob/main/examples/tiny-skia-winit/README.md Builds and runs the tiny-skia-winit example using Cargo. This command compiles the project in release mode and executes the specified package. ```bash cargo run --release --package tiny-skia-winit ``` -------------------------------- ### Android Build Environment Setup Source: https://github.com/parasyte/pixels/blob/main/examples/minimal-winit-android/README.md Configures essential environment variables for Android development, adds the required Rust target architecture, and installs the `cargo-apk` utility for building Android applications. ```bash export ANDROID_HOME="path/to/sdk" export ANDROID_NDK_HOME="path/to/ndk" ustup target add aarch64-linux-android cargo install cargo-apk ``` -------------------------------- ### Running the Example Source: https://github.com/parasyte/pixels/blob/main/examples/imgui-winit/README.md Command to build and run the Dear-ImGui example using Cargo. This command compiles the project in release mode and specifies the package to run. ```bash cargo run --release --package imgui-winit ``` -------------------------------- ### Run Raqote Winit Example Source: https://github.com/parasyte/pixels/blob/main/examples/raqote-winit/README.md This command builds and runs the raqote-winit example using cargo. It compiles the project in release mode for optimized performance. ```bash cargo run --release --package raqote-winit ``` -------------------------------- ### Install WASM32 Target (Bash) Source: https://github.com/parasyte/pixels/blob/main/examples/minimal-web/README.md Installs the WASM32 target for cross-compilation to the web. This is a prerequisite for building Rust projects for WebAssembly. ```bash rustup target add wasm32-unknown-unknown ``` -------------------------------- ### Run Minimal Egui Example Source: https://github.com/parasyte/pixels/blob/main/examples/minimal-egui/README.md Build and execute the minimal egui example using the cargo build tool. This command compiles the project in release mode for optimal performance. ```bash cargo run --release --package minimal-egui ``` -------------------------------- ### Run Minimal Winit Example Source: https://github.com/parasyte/pixels/blob/main/examples/minimal-winit/README.md Command to build and run the minimal winit example in release mode. This command is used to execute the application after it has been compiled. ```bash cargo run --release --package minimal-winit ``` -------------------------------- ### Run WebGL2 Example on Native (Bash) Source: https://github.com/parasyte/pixels/blob/main/examples/minimal-web/README.md Builds and runs the project on native targets. This command compiles the Rust code and executes the application directly on your operating system. ```bash cargo run --release --package minimal-web ``` -------------------------------- ### Run Custom Shader Example Source: https://github.com/parasyte/pixels/blob/main/examples/custom-shader/README.md Executes the custom shader example using Cargo. This command builds and runs the application in release mode, targeting the 'custom-shader' package. ```bash cargo run --release --package custom-shader ``` -------------------------------- ### Run Minimal FLTK Example Source: https://github.com/parasyte/pixels/blob/main/examples/minimal-fltk/README.md Demonstrates how to build and run the minimal FLTK example using Cargo. This command compiles the project in release mode and executes the 'minimal-fltk' package. ```bash cargo run --release --package minimal-fltk ``` -------------------------------- ### Run Minimal Tao Example Source: https://github.com/parasyte/pixels/blob/main/examples/minimal-tao/README.md Executes the minimal tao example using cargo. This command builds and runs the application in release mode, demonstrating window and event handling with a native menubar. ```bash cargo run --release --package minimal-tao ``` -------------------------------- ### Troubleshooting Logging with RUST_LOG Source: https://github.com/parasyte/pixels/blob/main/README.md This example demonstrates how to use the RUST_LOG environment variable to enable detailed logging for troubleshooting `pixels` examples. It shows commands for both debug and release builds. ```Shell RUST_LOG=trace cargo run --package minimal-winit ``` ```Shell RUST_LOG=trace cargo run --package minimal-winit --release --no-default-features ``` -------------------------------- ### Run Application on Android Device Source: https://github.com/parasyte/pixels/blob/main/examples/minimal-winit-android/README.md Deploys and runs the Rust application on a connected Android device via USB debugging using the `cargo-apk` tool. ```bash cargo apk run ``` -------------------------------- ### Pixel Invaders Architecture Overview Source: https://github.com/parasyte/pixels/blob/main/examples/invaders/README.md Describes the core dependencies and architecture of the Pixel Invaders game. It highlights the use of the 'simple-invaders' crate for game logic, 'winit' for windowing and input, and 'pixels' for rendering. ```rust Project: /parasyte/pixels Architecture: Pixel Invaders uses the `simple-invaders` crate for all game logic and drawing. This example is simply glue code that uses `winit` for windowing/event handling and keyboard input. The `winit` event loop is used to drive the `simple-invaders` state and rasterize each frame. Finally, `pixels` takes the rasterized frame buffer and sends it to the screen, optionally through a series of render passes. ``` -------------------------------- ### Run Conway's Game of Life Source: https://github.com/parasyte/pixels/blob/main/examples/conway/README.md This command compiles and executes the Conway's Game of Life simulation. It uses the Cargo build system and specifies release mode for optimized performance. The `--package conway` flag targets the specific package within the project. ```bash cargo run --release --package conway ``` -------------------------------- ### Run Pixel Invaders Game Source: https://github.com/parasyte/pixels/blob/main/examples/invaders/README.md Command to compile and run the Pixel Invaders game in release mode. This command utilizes Cargo, Rust's build system and package manager, to execute the 'invaders' package. ```bash cargo run --release --package invaders ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.