beetlebug▾
/

canvas imove

Moves one point of a line or a polygon.

PATHNAME imove TAGORID INDEX X Y

Description

Moves one point of each item of TAGORID to X,Y. INDEX counts the coordinates, as in index, and the point that holds the coordinate at INDEX moves. The other points stay.

Returns

An empty string.

Examples

% canvas .im
> .im create line 0 0 10 10 20 0
> .im imove 1 2 7 7
> .im coords 1
0.0 0.0 7.0 7.0 20.0 0.0

Errors

% canvas .im2; .im2 imove
wrong # args: should be ".im2 imove tagOrId index x y"
-errorcode NONE

Facts

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

See also