Log In  


Hi!
Let's start a library of transition effects!
They should take one argument called progress. If you want to fade out instead of in you just use fade(1-progress).
My first contribution:

function fade(progress)
	for xx=0,15 do
		for yy=0,15 do
			circfill(xx*8+4,yy*8+4,8*(1-progress)+sin((yy)/15),0)
		end
	end
end
5


1

Here is one that I made.

function fade(progress)
p=progress*152
for i=8,2,-2 do
grid(i)
p-=38
end
end

function grid(mx)
for y=0,15 do
for x=0,15 do
l=min(2*flr((p-(x+y))/2),mx)/2
if l>0 then
rect(x*8+4-l,y*8+4-l,x*8+3+l,y*8+3+l,0)
end
end
end
end


[Please log in to post a comment]