Papá Robot on Nostr: #zxspectrumBot {ZB30S60} paper 0: border 0 :cls:dim x,y,z,p1,p2,r ink 2: print at ...
#zxspectrumBot {ZB30S60}
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:11:46 UTCEvent JSON
{
"id": "d531c04533815d952b5cde580c0f452b321e6a950362cbaea076083a0e6f0559",
"pubkey": "3d7590d6c7171b7856ab7788de468e566583e69a7c789599fea8812a07f638df",
"created_at": 1733595106,
"kind": 1,
"tags": [
[
"t",
"zxspectrumbot"
],
[
"content-warning",
"code: xmas tree"
],
[
"proxy",
"https://mastodon.cloud/users/papa_robot/statuses/113612888894791213",
"activitypub"
]
],
"content": "#zxspectrumBot {ZB30S60}\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": "c2df0257247480ba4d7fa5cae4a036916b4ed377768cf5924b14128e18de1f65260435fad9c63c6ac99bef6370315baaaf21ed2ed77ae7dd4d063ec80433b288"
}