Papá Robot on Nostr: #zxspectrumBot {Z} paper 0: border 0 :cls:dim x,y,z,p1,p2,r ink 2: print at 20,5; ...
#zxspectrumBot {Z}
paper 0: border 0 :cls:dim x,y,z,p1,p2,r
ink 2: print at 20,5; "Happy holidays !!"
ink 4
r=1:p1=cos(PI/6):p2=cos(PI/2-p1)
for th=0 to 99 step PI/15
x=(r/40+th)/2*cos(th)
y=(r/40+th)/2*sin(th)
z=-r/5+100
r=r+1
xp=-p1*x+p1*y
yp=-p2*x-p2*y+z
if th=0 then plot xp+128,yp+92 else DRAW xp+128-PEEK 23677,yp+92-PEEK 23678
if rnd*6<1 and z<50 then ink 2: circle xp+128,yp+95,3 : ink 4: plot xp+128,yp+92
next th
DO LOOP WHILE INKEY$ = ""
Published at
2024-12-07 18:00:36 UTCEvent JSON
{
"id": "471a5e83af3e513ec7695eae3bb8e50a1b1bfa73baccb7ddc5d828629c913372",
"pubkey": "3d7590d6c7171b7856ab7788de468e566583e69a7c789599fea8812a07f638df",
"created_at": 1733594436,
"kind": 1,
"tags": [
[
"t",
"zxspectrumbot"
],
[
"proxy",
"https://mastodon.cloud/users/papa_robot/statuses/113612845015654308",
"activitypub"
]
],
"content": "#zxspectrumBot {Z}\npaper 0: border 0 :cls:dim x,y,z,p1,p2,r\nink 2: print at 20,5; \"Happy holidays !!\"\nink 4\nr=1:p1=cos(PI/6):p2=cos(PI/2-p1)\nfor th=0 to 99 step PI/15\n\nx=(r/40+th)/2*cos(th)\ny=(r/40+th)/2*sin(th)\nz=-r/5+100\nr=r+1\n\nxp=-p1*x+p1*y\nyp=-p2*x-p2*y+z\nif th=0 then plot xp+128,yp+92 else DRAW xp+128-PEEK 23677,yp+92-PEEK 23678\nif rnd*6\u003c1 and z\u003c50 then ink 2: circle xp+128,yp+95,3 : ink 4: plot xp+128,yp+92\nnext th\nDO LOOP WHILE INKEY$ = \"\"",
"sig": "5f52deab88db92e0c3e23774ddd9a66dbbdd6720f24253476c15bc1a43286924faea5f459f3e83b317c90d9a8e5028c3c1bf27c0b67d4e1214596c557a8fe82d"
}