Skip to main content
added 75 characters in body
Source Link
naffetS
  • 13.1k
  • 2
  • 22
  • 54

Python, 83 bytes

from turtle import* a,b=[i:=0],[-1] while 1:a,b=b,b+a;lt(b[i]**i*90);fd(5);i+=1 

-6 thanks to tsh

Draws it infinitely.

Very slow because it generates another term of the Fibonacci sequence at every iteration. This is much faster if you want to test it:

from turtle import* a,b=[i:=0],[90] while 1: if i>=len(b):a,b=b,b+a lt(b[i]*(-1)**i);fd(5);i+=1 

Try it on repl.it!

You can also add a speed(0) at the beginning to make it draw faster.

enter image description here

Python, 83 bytes

from turtle import* a,b=[i:=0],[-1] while 1:a,b=b,b+a;lt(b[i]**i*90);fd(5);i+=1 

-6 thanks to tsh

Draws it infinitely.

Very slow because it generates another term of the Fibonacci sequence at every iteration. This is much faster if you want to test it:

from turtle import* a,b=[i:=0],[90] while 1: if i>=len(b):a,b=b,b+a lt(b[i]*(-1)**i);fd(5);i+=1 

You can also add a speed(0) at the beginning to make it draw faster.

enter image description here

Python, 83 bytes

from turtle import* a,b=[i:=0],[-1] while 1:a,b=b,b+a;lt(b[i]**i*90);fd(5);i+=1 

-6 thanks to tsh

Draws it infinitely.

Very slow because it generates another term of the Fibonacci sequence at every iteration. This is much faster if you want to test it:

from turtle import* a,b=[i:=0],[90] while 1: if i>=len(b):a,b=b,b+a lt(b[i]*(-1)**i);fd(5);i+=1 

Try it on repl.it!

You can also add a speed(0) at the beginning to make it draw faster.

enter image description here

deleted 2 characters in body
Source Link
naffetS
  • 13.1k
  • 2
  • 22
  • 54

Python, 8583 bytes

from turtle import* a,b=[i:=0],[90][-1] while 1:a,b=b,b+a;lt(b[i]*(-1)**ib[i]**i*90);fd(5);i+=1 

-46 thanks to tsh

Draws it infinitely.

Very slow because it generates another term of the Fibonacci sequence at every iteration. This is much faster if you want to test it:

from turtle import* a,b=[i:=0],[90] while 1: if i>=len(b):a,b=b,b+a lt(b[i]*(-1)**i);fd(5);i+=1 

You can also add a speed(0) at the beginning to make it draw faster.

enter image description here

Python, 85 bytes

from turtle import* a,b=[i:=0],[90] while 1:a,b=b,b+a;lt(b[i]*(-1)**i);fd(5);i+=1 

-4 thanks to tsh

Draws it infinitely.

Very slow because it generates another term of the Fibonacci sequence at every iteration. This is much faster if you want to test it:

from turtle import* a,b=[i:=0],[90] while 1: if i>=len(b):a,b=b,b+a lt(b[i]*(-1)**i);fd(5);i+=1 

You can also add a speed(0) at the beginning to make it draw faster.

enter image description here

Python, 83 bytes

from turtle import* a,b=[i:=0],[-1] while 1:a,b=b,b+a;lt(b[i]**i*90);fd(5);i+=1 

-6 thanks to tsh

Draws it infinitely.

Very slow because it generates another term of the Fibonacci sequence at every iteration. This is much faster if you want to test it:

from turtle import* a,b=[i:=0],[90] while 1: if i>=len(b):a,b=b,b+a lt(b[i]*(-1)**i);fd(5);i+=1 

You can also add a speed(0) at the beginning to make it draw faster.

enter image description here

added 91 characters in body
Source Link
naffetS
  • 13.1k
  • 2
  • 22
  • 54

Python, 85 bytes

from turtle import* a,b=[1],[ib=[i:=0],[90] while 1:a,b=b,b+a;b[i]or ltb+a;lt(i%2*180b[i]*(-901)**i);fd(5);i+=1 

-4 thanks to tsh

Draws it infinitely.

Very slow because it generates another term of the Fibonacci sequence at every iteration. This is much faster if you want to test it:

from turtle import* a,b=[1],[ib=[i:=0],[90] while 1: if i>=len(b):a,b=b,b+a  b[i]or lt(i%2*180b[i]*(-901)**i);fd(5);i+=1 

You can also add a speed(0) at the beginning to make it draw faster.

enter image description here

Python, 85 bytes

from turtle import* a,b=[1],[i:=0] while 1:a,b=b,b+a;b[i]or lt(i%2*180-90);fd(5);i+=1 

Draws it infinitely.

Very slow because it generates another term of the Fibonacci sequence at every iteration. This is much faster if you want to test it:

from turtle import* a,b=[1],[i:=0] while 1: if i>=len(b):a,b=b,b+a  b[i]or lt(i%2*180-90);fd(5);i+=1 

You can also add a speed(0) at the beginning to make it draw faster.

Python, 85 bytes

from turtle import* a,b=[i:=0],[90] while 1:a,b=b,b+a;lt(b[i]*(-1)**i);fd(5);i+=1 

-4 thanks to tsh

Draws it infinitely.

Very slow because it generates another term of the Fibonacci sequence at every iteration. This is much faster if you want to test it:

from turtle import* a,b=[i:=0],[90] while 1: if i>=len(b):a,b=b,b+a lt(b[i]*(-1)**i);fd(5);i+=1 

You can also add a speed(0) at the beginning to make it draw faster.

enter image description here

deleted 2 characters in body
Source Link
naffetS
  • 13.1k
  • 2
  • 22
  • 54
Loading
Source Link
naffetS
  • 13.1k
  • 2
  • 22
  • 54
Loading