Graph as Text
Find a file
2025-11-11 22:58:51 -06:00
src add README 2025-11-11 22:58:51 -06:00
.gitignore add README 2025-11-11 22:58:51 -06:00
build.sh add README 2025-11-11 22:58:51 -06:00
build.zig add README 2025-11-11 22:58:51 -06:00
build.zig.zon add README 2025-11-11 22:58:51 -06:00
README.md add README 2025-11-11 22:58:51 -06:00

Graph as Text

an almost featurless tool for plotting numbers to a 32x18 square

Building

This project was built with zig 0.15.1.

All you would to do is run zig build. The build.sh file in this directory is just for my personal setup, but you could run that if ya want.

Installing

Place zig-out/bin/gat anywhere in the world you have path'd.

Running

GAT takes in an array of numbers and treats them like coordinate pairs. If you give gat an odd number of numbers it will drop off the last value.

Example:

[vvesley@gethen gat]$ zig-out/bin/gat 1 2 3 4 5 6 7
 0 | --------------------------------
 1 | --------------------------------
 2 | -#------------------------------
 3 | --------------------------------
 4 | ---#----------------------------
 5 | --------------------------------
 6 | -----#--------------------------
 7 | --------------------------------
 8 | --------------------------------
 9 | --------------------------------
10 | --------------------------------
11 | --------------------------------
12 | --------------------------------
13 | --------------------------------
14 | --------------------------------
15 | --------------------------------
16 | --------------------------------
17 | --------------------------------

If you don't put any values you'll just get whitenoise

[vvesley@gethen gat]$ zig-out/bin/gat
 0 | ###-##----###-##--#-#-#-##---###
 1 | ##-####-#-##--###---#-###-------
 2 | ####--#-########-##-#######-####
 3 | ----##-#####-#--##---#--#-#-####
 4 | ##-####--###--#---###---#---####
 5 | --#####----##--####-#--#-##-#--#
 6 | #-##-#-#-#-###--#-##----##-####-
 7 | -##-##-####-#-##--####--#-##-##-
 8 | ---#####-#-#--###-##-##-###-----
 9 | --#-##--######-#############-###
10 | ---####--#-########---#########-
11 | #--###---####-#--#-##--#-#--##-#
12 | #-##-#-#-#-####-##----####--#-##
13 | ##-##--#-##--##-#-#--####-######
14 | ########--#####-##-#######--####
15 | --##--####-###-#####---##--####-
16 | ---#---#-#-#-###-##-#####-####--
17 | -#--##---#-###-######-##--##-##-