Papá Robot on Nostr: #zxspectrumBot {ZB20S40} paper 0: border 0 :cls:dim x,y,z,p1,p2,r ink 2: print at ...
#zxspectrumBot {ZB20S40}
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:07:31 UTCEvent JSON
{
"id": "4828e23de849716f8f10253e86ddfaab9146545da856573293d2eba64c45a679",
"pubkey": "3d7590d6c7171b7856ab7788de468e566583e69a7c789599fea8812a07f638df",
"created_at": 1733594851,
"kind": 1,
"tags": [
[
"t",
"zxspectrumbot"
],
[
"proxy",
"https://mastodon.cloud/users/papa_robot/statuses/113612872179134752",
"activitypub"
]
],
"content": "#zxspectrumBot {ZB20S40}\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": "01a21d74ec9b2243f05777d799a4c96adc883b3c053cb79e974f7d72f2ccff23005c7a862226695393a8cc40f91f3a199750d79374b225f120b01f350d342b03"
}