Waiting to be translated into Codea...

These small code pieces: https://www.dwitter.net/
Have fun!

Interesting designs.

@quezadav those designs look really cool!

It looks cool, but what exactly is it?

From what I can tell, they’re different designs written using the least amount of code.

Hmm interesting, is it in Lua?

Nope, it is javascript.

@EvanDavis @dave1707
All it is a formula used with one variable, t, which specifies the time. Very efficient pieces of code tho.

Cool

Here’s an example of the first one.

displayMode(FULLSCREEN)

function setup()
    t=0
end

function draw()
    background(0)
    scale(WIDTH/1920)
    fill(255)
    t=t+.02
    for i=0,9 do
        rect(400+i*100+math.sin(t)*300,400,50,200)
    end
end

Here’s another one.

displayMode(FULLSCREEN)

function setup()
    t=0
end

function draw()
    background(0)
    scale(.5)
    m=960
    o=540
    q=99
    t=t+.1
    for i=q,0,-1 do
        a=6.28*i/q+t
        k=m+math.cos(a)*o
        l=o+math.sin(a)*o/2
        for j=q,0,-1 do
            b=6.28*j/q
            rect(k+math.cos(b)*q*math.cos(a),l+math.sin(b)*q,3,3)         
        end
    end
end

And another.

displayMode(FULLSCREEN)

function setup()
    t=0
end

function draw()
    background(0)
    scale(.5)
    fill(255)
    t=t+.1
    for i=0,250 do
        for j=0,5 do
            rect(math.cos(j+i)*100+1000,math.sin(t+i)*100+500,10,10)
        end
    end
end

Brilliant, @dave1707.

Can someone explain how

c.width^=0;for(i=9;i<2e3;i+=2)s=3/(9.1-(t+i/99)%9),x.beginPath(),j=i*7+S(i*4+t+S(t)),x.lineWidth=s*s,x.arc(960,540,s*49,j,j+.6),x.stroke()

works and/or replicate it in Codea? (It’s the tunnel looking one)

Here’s one:

function setup()
    t=0
    x,y = WIDTH/2,HEIGHT/2
    rectMode(CENTER)
    backingMode(RETAINED)
end

function draw()
    fill(255)
    noStroke()
    rect(x,y,10,10)
    x = x + math.random(2)*20 - 30
    y = y + math.random(2)*20 - 30
end