Skip to content

Miou-zora/Zix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zix (Spline visualizer in Zig)

Zix is a spline visualizer written in zig that use Raylib for rendering and Nix for dev-env.

I will try to implement these functions:

  • ✅ Bézier
  • ✅ Catmull-Rom
  • ✅ B-Spline
  • ✅ Linear

📑 Requirements

Important

You will need to enable nix-command and flakesexperimental features If you get an error about it, consider this command: mkdir -p ~/.config/nix && echo "experimental-features = nix-command flakes" | tee ~/.config/nix/nix.conf

Usage

🔧 Setup

Clone this repository and navigate to the project directory.

git clone https://github.com/Miou-zora/Zix.git
cd Zix

👷 Building

zig build

🚀 Running

# It will build the project and run it. (do nothing if the project is already built)
zig build run
# or you can run the executable directly
./zig-out/bin/Zix

Note

nix build is not supported yet. If you try to use it, it will create a result symlink that contain the executable BUT musl isn't linked correctly to binary. It would be appreciated if someone could help me to fix this issue.

Using direnv

You may load the devShell automatically using direnv shell integration.

echo "use flake" | tee .envrc
direnv allow

🎨 Result