Log In  

Cart #pohedoruto-0 | 2020-10-18 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
3

I wasn't going for a 3d effect, but it looks 3d to me. Feel free to copy/ change

P#83066 2020-10-18 11:43 ( Edited 2020-10-18 11:50)

1

Optimized it down to tweetcart size, even before minification (273 characters)

q=.25
function e(i)
 return sin(i)*64+64
end

::l::
 cls(1)
 i=t()/4
 cx=sin(-i)*32+64
 cy=cos(-i)*32+64
 x,y=e(i),e(i-q)
 for j=q,1,q do
  u,v,x,y=x,y,e(i+j),e(i+j-q)
  for k=0,1,q/2 do
   line(u+k*(cx-u),v+k*(cy-v),cx+k*(x-cx),cy+k*(y-cy),6+j*4)
  end
 end
 flip()
goto l

And actually minified down to 236 characters:

q=.25function e(i)return sin(i)*64+64
end::l::cls(1)i=t()/4
a=sin(-i)*32+64
b=cos(-i)*32+64
x,y=e(i),e(i-q)for j=q,1,q do
u,v,x,y=x,y,e(i+j),e(i+j-q)for k=0,1,q/2do
line(u+k*(a-u),v+k*(b-v),a+k*(x-a),b+k*(y-b),6+j*4)end
end
flip()goto l
P#83068 2020-10-18 12:42 ( Edited 2020-10-18 12:49)
:: Athas

@Valkhiya thank you. I've got no real twitter followers but its really cool work.

https://twitter.com/WesleyIsMe/status/1317815281188732929

P#83071 2020-10-18 13:11

[Please log in to post a comment]

Follow Lexaloffle:        
Generated 2020-10-25 22:04 | 0.036s | 2097k | Q:31