2023-07-24 21:32:18 +00:00
|
|
|
# LJ Template for Rust
|
|
|
|
|
|
|
|
**This project is a basic program for building rust programs compatible with the protonphoton LJ project.**
|
|
|
|
|
|
|
|
Use this code as a basis and let the laser points be with you.
|
|
|
|
|
2024-01-27 14:57:50 +00:00
|
|
|
## **Crash course**
|
2023-07-24 21:32:18 +00:00
|
|
|
|
2024-01-27 14:57:50 +00:00
|
|
|
#### 1. Clone the project
|
|
|
|
```rust
|
|
|
|
git clone https://git.interhacker.space/protonphoton/lj_templates_rust && cd lj_templates_rust
|
2023-07-24 21:32:18 +00:00
|
|
|
```
|
|
|
|
|
2024-01-27 14:57:50 +00:00
|
|
|
##### 2. Create a settings file, see the content for more details including redis server url
|
|
|
|
```rust
|
|
|
|
cp copyme.settings.toml settings.toml && $EDITOR settings.toml
|
|
|
|
```
|
2023-07-24 21:32:18 +00:00
|
|
|
|
2024-01-27 14:57:50 +00:00
|
|
|
##### 3. Edit the draw.rs to create your custom behavior
|
|
|
|
```rust
|
|
|
|
$EDITOR src/draw.rs
|
|
|
|
```
|
2023-07-24 21:32:18 +00:00
|
|
|
|
2024-01-27 14:57:50 +00:00
|
|
|
##### 4. Run the projet
|
|
|
|
```rust
|
|
|
|
cargo run
|
2023-07-24 21:32:18 +00:00
|
|
|
```
|
|
|
|
|
2024-01-27 14:57:50 +00:00
|
|
|
|
2023-07-24 21:32:18 +00:00
|
|
|
## Associate projects
|
|
|
|
|
|
|
|
**The LJ rust tracer projet and the nannou visualiser might be of help to simulate your project.**
|
|
|
|
|
2024-01-27 14:57:50 +00:00
|
|
|
Todo: make a full tutorial for that
|