From e00c6b8fb2b8cbe13056c4cbebf89f7a96f36585 Mon Sep 17 00:00:00 2001 From: tTh Date: Sat, 6 Apr 2024 20:25:51 +0200 Subject: [PATCH] add togray filter --- Fonderie/crapulator.c | 5 +++++ Fonderie/crapulors.liste | 2 ++ 2 files changed, 7 insertions(+) diff --git a/Fonderie/crapulator.c b/Fonderie/crapulator.c index c02658b..4a5af6b 100644 --- a/Fonderie/crapulator.c +++ b/Fonderie/crapulator.c @@ -510,6 +510,11 @@ switch (idFx) { retval = run_triptyq(image, 0); break; + case CR_togray: + retval = fimg_to_gray(image); + break; + + default : fprintf(stderr, "%s : effect #%d invalid\n", __func__, idFx); diff --git a/Fonderie/crapulors.liste b/Fonderie/crapulors.liste index 7e0196f..1674565 100644 --- a/Fonderie/crapulors.liste +++ b/Fonderie/crapulors.liste @@ -46,4 +46,6 @@ 62 suprbg 1 0 80 thermocol 1 0 81 triptyq 1 0 +90 togray 1 0 -1 end 1 1.0 +