Set pen size

setpensize thickness
setps thickness

Set new thickness of lines which turtle is drawing (specified in pixels).

Example:

wrap rt 90
repeat 720 [setps 150 * (sin repcount)^2 fd 1]

Output: a drawing in the graphics window.

See also:

Table of Content