initial commit

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ie3b66d17f6f660c9b9a719210bd86f9f6a6a6964
This commit is contained in:
raf 2026-03-17 23:34:37 +03:00
commit b381e2efbd
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
29 changed files with 1633 additions and 0 deletions

13
src/utils.c Normal file
View file

@ -0,0 +1,13 @@
#include "utils.h"
int clamp(int value, int min, int max) {
if (value < min)
return min;
if (value > max)
return max;
return value;
}
int in_bounds(int x, int y, int width, int height) {
return x >= 0 && x < width && y >= 0 && y < height;
}