Skip to content

Instantly share code, notes, and snippets.

View pxky's full-sized avatar
:atom:
probably dead

pxky

:atom:
probably dead
  • hell
  • 22:53 (UTC +12:00)
View GitHub Profile
@cl1ents
cl1ents / ! ! donut.lua
Last active February 10, 2025 03:03
Donut math: recreation of donut.c in Roblox Luau
sin,cos,w=math
.sin,math.cos,math.--$
floor;A,R,S=0,.0704,1760;C
=(".,-~:;=!*#$@"):split("")b,z
={},{}while(1)do task.wait(.01)for
i=0,S do z[i]=0 end for i=0,S do b[i
]=i%80==0 and"\n" or" " end V=6.28 B=A
/2 for j=0,V,0.07 do for i = 0, V, .02
do c,d,e,f,g=sin (i),cos(j),sin(A
),sin(j),cos(A) h=d+2;D=1/(c*h*