aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkdx <kikoodx@paranoici.org>2024-02-04 22:00:11 +0100
committerkdx <kikoodx@paranoici.org>2024-02-04 22:00:11 +0100
commit1331a05fcacd5d734d6bf00a51d452e63d2cfe80 (patch)
tree54a6b94cc64854bef67b5f2517a776c87f789d9e
parentd1848d72fbb742ec15ac35a33c00987f2baed9e0 (diff)
downloadkld-1331a05fcacd5d734d6bf00a51d452e63d2cfe80.tar.gz
? main
-rw-r--r--main.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/main.c b/main.c
index 27c8918..333bb30 100644
--- a/main.c
+++ b/main.c
@@ -5,17 +5,20 @@ int
main(int argc, char **argv)
{
if (argc < 2) {
- fprintf(stderr, "usage: %s image.png\n", argv[0]);
+ fprintf(stderr, "usage: %s image.png image.png\n", argv[0]);
return EXIT_FAILURE;
}
KldImage *img = kld_load(argv[1]);
- kld_altcolumns(img);
- kld_sand(img);
- kld_altlines(img);
- kld_bit3(img);
+ KldImage *img2 = kld_dup(img);
+
+ kld_grayscale(img2);
+ kld_mod(img, KLD_COLOR(255, 255, 0, 255));
+ kld_mod(img2, KLD_COLOR(0, 0, 255, 255));
+ kld_add(img, img2);
kld_writePAM(img, stdout);
+ kld_free(img2);
kld_free(img);
return EXIT_SUCCESS;
}