I have to add a return here just to make a command work:
# snipped code
rm. return
#@cli rep_ordered_dithering: bit_depth>0,0<=dithering<=1,threshold_map_iteration>0 | bit_depth_a>0:...:bit_depth_z>0,0<=dithering<=1,threshold_map_iteration>0 | [palette],0<=dithering<=1,threshold_map_iteration>0 |
bit_depth<0,0<=dithering<=1,threshold_map_iteration>0,spread
#@cli : Apply ordered dithering effect onto image.
#@cli : Note : bit_depth_a:...:bit_depth_z implies that the first argument is a set of arguments joined by the ':' char. This is used for separating bit depth channels.
rep_ordered_dithering:
Without it, it gives me this:
C:\Windows\System32>gmic sp waterfall +pal 20 rep_index_by_window_and_color_restriction[0] [-1],.5,0,0,0,0,1
[gmic]-0./ Start G'MIC interpreter.
[gmic]-1./ Input sample image 'waterfall' (1 image 750x500x1x3).
[gmic]-1./+pal/+_pal/ Create palette 'aap12'.
[gmic] *** Error in ./rep_index_by_window_and_color_restriction/ (file 'C:\Users\User\AppData\Roaming\user.gmic', line #482) *** Command 'input': File 'bit_depth<0', format does not take any input options (options '0<=dithering<=1,threshold_map_iteration>0,spread' specified).
What gives?
I believe it has something to do with:
bit_depth>0,0<=dithering<=1,threshold_map_iteration>0 | bit_depth_a>0:...:bit_depth_z>0,0<=dithering<=1,threshold_map_iteration>0 | [palette],0<=dithering<=1,threshold_map_iteration>0 |
bit_depth<0,0<=dithering<=1,threshold_map_iteration>0,spread
Removing that confirms it though. So, I have to change it a bit. Somehow.
This works though:
#@cli rep_ordered_dithering: bit_depth>0,0<=dithering<=1,threshold_map_iteration>0 :
#@cli : bit_depth_a>0:...:bit_depth_z>0,0<=dithering<=1,threshold_map_iteration>0 :
#@cli : [palette],0<=dithering<=1,threshold_map_iteration>0 :
#@cli : bit_depth<0,0<=dithering<=1,threshold_map_iteration>0,spread
#@cli : Apply ordered dithering effect onto image.
#@cli : Note: bit_depth_a:...:bit_depth_z implies that the first argument is a set of arguments joined by the ':' char. This is used for separating bit depth channels.
Why?