commit 5dcc3776e04d7f245995055cf9621f1c86f28157
parent 95406b636b76e06831279e04c0fd89103a8ab600
Author: Andrew Laack <andrew@laack.co>
Date: Tue, 15 Sep 2026 00:41:23 -0500
Minimal graphs look nicer
Diffstat:
3 files changed, 7 insertions(+), 8 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -0,0 +1 @@
+background
diff --git a/background/Makefile b/background/Makefile
@@ -2,3 +2,5 @@ build:
g++ -Ofast main.cpp graph.cpp edge.cpp utils.cpp vertex.cpp -lraylib -o background
install: build
cp background /usr/local/bin
+clean:
+ rm background
diff --git a/background/main.cpp b/background/main.cpp
@@ -33,14 +33,11 @@ int main() {
std::filesystem::create_directory("/dev/shm/bg");
srand(clock());
- std::size_t edgeCount = 1000;
- std::size_t vertCount = 100;
+ std::size_t edgeCount = 30;
+ std::size_t vertCount = 10;
float xMax = 5120;
float yMax = 1440;
-
-
-
SetConfigFlags(FLAG_WINDOW_HIDDEN);
InitWindow(xMax, yMax, "Raylib animation window");
@@ -67,10 +64,9 @@ int main() {
g.render();
EndDrawing();
- // this is very slow... also, why not just fucking paths?
char path[] = "/dev/shm/bg/out.png";
CustomTakeScreenshot(path);
- // ye...
+ // TODO: Can this be done away with? It's not *that* slow...
system("/usr/bin/feh --no-fehbg --bg-tile /dev/shm/bg/out.png");
@@ -102,7 +98,7 @@ int main() {
}
- }
+ }
}