What commands to draw pentagon in logo?

1 answer

Answer

1081855

2026-05-04 20:35

+ Follow

to draw-pentagon :length

pd

seth 126

repeat 5 [ fd :length rt 72 ]

end

Draws a pentagon "length" pixels on each side, with the turtle originating and terminating at the apex.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.