Reference

Table of Contents  ▸  List of Commands  ▸  Image Drawing  ▸  rectangle◀  quiver    |    rorschach  ▶

rectangle

Arguments:

Description:

Draw specified colored rectangle on selected images.

pattern is an hexadecimal number starting with 0x which can be omitted
even if a color is specified. If a pattern is specified, the rectangle is
drawn outlined instead of filled.

Default values:

opacity=1, pattern=(undefined) and color1=0.

Example of use:

$ gmic image.jpg repeat 30 rectangle {u(100)}%,{u(100)}%,{u(100)}%,{u(100)}%,0.3,${-rgb} done

Command: image.jpg repeat 30 rectangle {u(100)}%,{u(100)}%,{u(100)}%,{u(100)}%,0.3,${-rgb} done