Get turtle's world name

canvas

Returns the name of world which contains turtle or plot (also the name of the graphics tab).

Example:

print world

"t := newp "Plot ["data := histogram (rnorm 0 2 500) 10]
print world @ :t

"cfg := thing word (world @ :t"_canvas_cfg
:cfg,"min_x := -8
:cfg,"max_x := 8

Output:

pool
plot

See also:

Turtle - object
Classes and class hierarchy

Table of Content