beetlebug▾
/

canvas move

Moves the items by a distance.

PATHNAME move TAGORID DX DY

Description

Adds DX to each x coordinate and DY to each y coordinate of each item of TAGORID.

Returns

An empty string.

Examples

% canvas .mv
> .mv create rectangle 0 0 10 10
> .mv move 1 5 5
> .mv coords 1
5.0 5.0 15.0 15.0

Errors

% canvas .mv2; .mv2 move 1 x 0
bad screen distance "x"
-errorcode NONE

% canvas .mv3; .mv3 move
wrong # args: should be ".mv3 move tagOrId xAmount yAmount"
-errorcode NONE

Facts

Capability
None.
Tcl release
Tcl 9.1 and 8.6.
Since
ztk 1.0.0-beta.1

See also