Negative colours are generally allowed and work fine, eg:
Code: Select all
magick xc:gray(-123%) txt:
# ImageMagick pixel enumeration: 1,1,65535,gray
0,0: (-80608) #000000000000 gray(-123%)
Code: Select all
magick -size 10x1 gradient:gray(-123%)-white txt:
magick: unrecognized color `(' @ warning/color.c/QueryColorCompliance/2394.
magick: unrecognized color `123%)' @ warning/color.c/GetColorCompliance/1050.
magick: no images for write '-write' 'txt:' at CLI arg 2 @ error/operation.c/CLINoImageOperator/4792.