Source code for NIFS3 (natural cubic splines) editor written in Zig + Raylib for the Numerical Analysis course @ II UWr
Easiest is using the provided Nix shell in shell.nix. Just type nix-shell in your prompt once you have Nix installed.
zig build
zig build run or ./zig-out/bin/konkurs1
The program loads the hardcoded path pwo++.png, but you can replace that image with another - the dimensions of the export area are determined dynamically based on the size of the input image.
left mouse button: move NIFS3 control pointright mouse button: select NIFS3 control point without moving itright mouse button + m: move the whole NIFS3 (must be moved using a control point, mouse scaling is a bit off)l: load NIFS3 from save files: save NIFS3 to save filee: export to competition formatleft,right,up,down,space+mouse move,middle mouse button+mouse move: move view=: increase line thickness-: decrease line thicknessescape: deselect pointr: reset dt ("weight") of the segment after the selected pointa: add pointd: delete pointg: increase the number ofusof the segment after the selected pointshift+g: decrease the number ofusof the segment after the selected pointn: add new NIFS3