Reference

Table of Contents  ▸  List of Commands  ▸  Values Manipulation  ▸  set◀  roundify    |    threshold  ▶

set

Built-in command

Arguments:

Description:

Set pixel value in selected images, at specified coordinates.

(equivalent to shortcut command =).


If specified coordinates are outside the image bounds, no action is performed.

Default values:

x=y=z=c=0.

Examples of use:

• Example #1

$ gmic 2,2 set 1,0,0 set 2,1,0 set 3,0,1 set 4,1,1

Command: 2,2 set 1,0,0 set 2,1,0 set 3,0,1 set 4,1,1

• Example #2

$ gmic image.jpg repeat 10000 set 255,{u(100)}%,{u(100)}%,0,{u(100)}% done

Command: image.jpg repeat 10000 set 255,{u(100)}%,{u(100)}%,0,{u(100)}% done