Format
icon(icon,state,dir,frame,moving)
(supports [named arguments](/proc/arguments/named))
Args
icon
: an icon file or /icon objecticon_state
: an optional text string, specifying a single icon state to loaddir
: an optional direction to extractframe
: an optional animation frame to extractmoving
: Non-zero to extract only movement states, 0 for non-movement states, or null (default) for both
This is equivalent to new/icon(). It creates an /icon object, which is initialized to contain the same graphical data as the given file. If an icon state or direction are specified, only those parts of the original icon will be included in the new icon object.