G'MIC exercises

I came across something interesting. I was having some G’MIC fun when I made a typo. y50_afre is supposed to take in one parameter (forgot to add a ,). I wonder what is going on and how I could arrive at “Typo” without incorrect syntax.

texture_afre: skip ${1=1},${2=10}
  repeat $! l[$>]
    n 0,255
    +l
      +l
        if $1 gradient_orientation 2 n 0,1 + y50_afre # ,
        else gradient_norm fi
        b 1,1,1
      endl
      *. {255*$2/iM} +
      n 0,255
    endl
    +l.. n 0,1 f gauss(i-.5) n 0,1 endl
    blend_fade[0,1] . k[0]
  endl done

No typo

Typo

1 Like