Code Sketch


Hypnotic
By: Levent Esen
// I liked KoJo :P

def drawHypnotic(T: Turtle, A: Double, C: Color){
    T.setPenColor(C)
    T.turn(A)
    var i = 0.0
    repeat(360 * 10) {
        T.turn(-1)
        T.forward(0.1 + i)
        i += 0.001
    }
}

clear()

zoom(0.8, 0, 0)
val thickness = 10

turtle0.setPenThickness(thickness)
turtle0.setAnimationDelay(0)

drawHypnotic(turtle0, 0, purple)

val T1 = newTurtle(11, -6)
T1.setPenThickness(thickness)
T1.setAnimationDelay(0)

drawHypnotic(T1, 180, orange)

turtle0.invisible()
T1.invisible()