import turtle 
painter = turtle.Turtle()
painter.pencolor("blue")
painter.speed(9)
    
painter.pencolor("red")
for i in range(100):
    painter.forward(100)
    painter.left(91)
   
turtle.done()
library(TurtleGraphics)
## Loading required package: grid
turtle_init(width=1000, height=1000,mode="cycle")

turtle_setpos(x=500, y=500)

turtle_do({
for(i in 1:180) {
turtle_forward(dist=400)
turtle_right(angle=123)
}
})