24 lines
No EOL
657 B
Markdown
24 lines
No EOL
657 B
Markdown
{{{
|
||
"planted": "10/28/2020",
|
||
"repotted": "1/4/2026",
|
||
"nobreak": "true"
|
||
}}}
|
||
|
||
* Recamán's sequence #tweetcart! I think this might've been done but I wanted to make it as well. Visuals based on Numberphile's video: https://youtu.be/FGC5TdIiT9U
|
||
(source in thread)
|
||
#pico8 #tweetjam
|
||
|
||

|
||
|
||
<div class="code"><p>
|
||
a={[0]=0}s=0p={}cls(1)::_::
|
||
s=ceil(t()*2)
|
||
if(a[s])goto s
|
||
v=a[s-1]-s
|
||
if(v<=0or p[v])a[s]=a[s-1]+s else a[s]=v
|
||
::s::
|
||
d=t()%.5◆=(a[s]+a[s-1])r=a[s]-a[s-1]⬅️=64*(s%2)⧗=0▒=◆-cos(d)*r+2
|
||
if(r<0)r=-r ⧗=◆+cos(d)*r-2▒=128
|
||
clip(⧗,⬅️,▒,64+⬅️)circ(◆,64,r,7)p[a[s]]=1flip()
|
||
goto _
|
||
</p></div> |