commit fe227dce3c67d50f1e16f9707c90953886c3e333
parent b4257ea6d908953a99da922017232ee9b5bab2ba
Author: Andrew Laack <andrew@laack.co>
Date: Tue, 15 Sep 2026 23:46:03 -0500
Renamed background -> abg
Diffstat:
4 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -1 +1 @@
-background.out
+abg.out
diff --git a/background/Makefile b/background/Makefile
@@ -1,9 +1,9 @@
build:
- g++ -Ofast src/main.cpp src/prim.cpp src/graph.cpp src/edge.cpp src/utils.cpp src/vertex.cpp src/background.cpp -lraylib -lX11 -o background.out
+ g++ -Ofast src/main.cpp src/prim.cpp src/graph.cpp src/edge.cpp src/utils.cpp src/vertex.cpp src/background.cpp -lraylib -lX11 -o abg.out
install: build
- cp background.out /usr/local/bin/background
+ cp abg.out /usr/local/bin/abg
clean:
- rm background.out
+ rm abg.out
test:
g++ tests/graph_test.cpp src/prim.cpp src/graph.cpp src/edge.cpp src/utils.cpp src/vertex.cpp src/background.cpp -lCatch2Main -lCatch2 -lraylib -lX11 -o graph_tests
./graph_tests
diff --git a/background/README b/background/README
@@ -1,5 +1,5 @@
-background
-==========
+abg - animated background
+=========================
dependencies
@@ -9,7 +9,7 @@ X11, raylib, g++
usage
=====
- Usage: background [--help] [--version] [--vertices VAR] [--edges VAR]
+ Usage: abg [--help] [--version] [--vertices VAR] [--edges VAR]
Optional arguments:
-h, --help shows help message and exits
@@ -19,5 +19,5 @@ usage
examples
========
- background --edges 50 --vertices 10
- background --edges 1500 --vertices 1000
+ abg --edges 50 --vertices 10
+ abg --edges 1500 --vertices 1000
diff --git a/background/src/main.cpp b/background/src/main.cpp
@@ -17,7 +17,7 @@ int main(int argc, char** argv) {
srand(clock());
// reverse semver
- argparse::ArgumentParser program("background", "10.0.0");
+ argparse::ArgumentParser program("abg", "10.0.0");
program.add_argument("--vertices")
.help("number of vertices in the graph")
@@ -58,8 +58,8 @@ int main(int argc, char** argv) {
// would be nice to do this all in background.cpp, but raylib and x11 can't both be imported
// by the same file because of some dependency chain thing with Font.
- InitWindow(xMax, yMax, "background-ray");
- sendToBg("background-ray");
+ InitWindow(xMax, yMax, "abg");
+ sendToBg("abg");
int count = 0;
while (!WindowShouldClose()) {