Hi all,
I was wondering if somebody could explain or point me to some resource describing what exactly does the rand() function do in imagemagick.
The other question is this: I see that at times brackets are used in complex commands in imagemagick. For example
Code:
convert \( light.png \( +clone -fx 'rand()' -threshold -1 \) \
> +swap +matte -compose CopyOpacity -composite \) \
> \( dark.png \( +clone -threshold 100% \) \
> +swap +matte -compose CopyOpacity -composite \) \
> -compose Over -composite high_lighting.png
It would be great if someone could explain the use of brackets and the rand(). From what I remember, the brackets are used to take the image operations into a scrap book (like we do with math calculations) and then the final result is brought back into the command. Is this even close to what the brackets are for?
Please help.
Thanks.