| src | small refactor | |
| .gitignore | hello | |
| build.zig | hello | |
| build.zig.zon | tiny rewrite. added rendering feature | |
| readme.md | fix readme | |
usage:
./bta_wire_goggle <command> ...
command:
-
help
-
hash <pos> [-d | -x | -b]
output the hash of a given position. -d: decimal (default), -x: hex, -b: binary -
bucket <pos>
output the bucket index of a given position. -
sides <pos>
output the neighboring positions. -
sides hash <pos> [-d | -x | -b]
output the hash of the neighboring positions. -
sides bucket <pos>
output the bucket index of the neighboring positions. -
order <pos> [-m]
output the update order of the neighboring positions. -m: minimum output -
render <origin> <width/8> <side1>:<side2> [-x | -y | -z]
for each position in range, evaluates if side1 is updated before side2, and renders the result to standard output.use 'render ... > file.pbm' to write to file.
origin: the center of the plane.
width/8: width of the plane / 8.
side1 and side2: accepts W, E, U, D, N, S.
-x, -y (default) and -z: the axis normal to the rendered plane. e.g. -y represents the XZ plane.
-
render create <origin> <width> <side1>:<side2> [-x | -y | -z]
same as the previous, but creates a file that is named based on the provided args and renders to it.
pos:
three numbers (only containing '0'...'9', but can begin with '-') separated by non-number charaters.
examples: "0 1 2", "(-10, 11, 12)", ".{{ 420; 69; 420 }}"