Get pen size
pensize
ps
Returns the current thickness of pen, expressed in pixels.
Example:
wrap rt 90
repeat 10 [
setps 10 * (1 + random 10)
print ps
fd 10
]
Output:
(also a drawing in the graphics window)
70
90
60
10
90
90
80
30
100
10
See also:
Table of Content