Image

An image (bitmap) in POOL can be read from a file (png, jpg, tif), created from a region in the graphics window or obtained from a turtle's icon.

Example:

ht pu
setturtleimg "yellow_dot
"img := turtleimg
"k := 28
repeat :k [
  (stamp :img 100 * repcount / :k)
  fd 360 / :k
  rt 360 / :k
]
print :img

Output:

bitmap23x23

See also:

image - create an image
turtleimg - get turtle's icon
readimage - read image from a file

Table of Content