is trinarize really ok ?

This commit is contained in:
2020-12-02 19:55:06 +01:00
parent a450ac4291
commit 8f29cb0db0
6 changed files with 29 additions and 21 deletions

View File

@@ -10,6 +10,7 @@
#include "fonctions.h"
#include "crapulator.h"
#include "glitches.h"
#include "sfx.h"
/* -------------------------------------------------------------- */
static int effect_3(FloatImg *image)
@@ -122,13 +123,16 @@ switch (idFx) {
case 11:
retval = trinarize(image, 0);
break;
case 12:
retval = fimg_lissage_2x2(image);
break;
case 24: /* experiment ! */
retval = des_bords_sombres_a(image, 160);
break;
case 25:
/* please make this function more tweakable */
retval = vertical_singlitch(image, 290+rand()%35,
fval, 0.18, 0);
retval = vertical_singlitch(image, 290+rand()%45,
fval, 0.19, 0);
break;
default :
fprintf(stderr, "%s : effect #%d invalid\n",