Skip to content

Instantly share code, notes, and snippets.

@plainspooky
Created December 29, 2017 12:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plainspooky/f3b37071c5f703b588667e25f89d61c3 to your computer and use it in GitHub Desktop.
Save plainspooky/f3b37071c5f703b588667e25f89d61c3 to your computer and use it in GitHub Desktop.
'' Edller’s math play
' define PI 3.14159265
' define STEP 0.157079633
screen 2
for r!=-{{PI}} to 0 step {{STEP}}
' calculate once
y%=90*sin(r!)
x%=100*cos(r!)
' use twice
line (127,95-y%)-(128+x%,95)
line (128,96+y%)-(127-x%,96)
next r!
goto {{@}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment