The Sixth Day of Tiny Code Christmas Extra
Tiny Code Christmas - Day 6 - EXTRA⌗
Welcome to Day 6 of Tiny Code Christmas EXTRA! We’re glad that you’re joining us again on this festive journey into the world of sizecoding. TCC Extra is intended for people who completed Tiny Code Christmas last year and want a new challenge!
If you haven’t already, read the overview to find out what Tiny Code Christmas is all about!
The Challenge: Rasterbars!⌗
The challenge is to make the smallest implementation you can of the provided code.
TIC-80⌗
function TIC()
cls()
t=time()/200
sin=math.sin
for ly=1,8 do
sv=sin(t/2+ly/4)
for lx=1,8 do
line(0,68+lx+sv*50,240,68+lx+sv*50,lx+8)
end
end
for i=1,67 do
sv=sin(i/13+t/8)*sin(i/7+t/2)*60
for j=0,8 do
line(sv+j+120,0+i*2,sv+j+120,136,j+8)
end
end
end
PICO-8⌗
Thanks to Liquidream for helpfully provided a PICO-8 palette that is suitable for gradient usage, compressed using 2DArray’s Palette Maker.
?"⁶!5f100█2☉9:⌂⬅️⬇️1▒😐<765"
function _draw()
cls()
t=time()
for ly=1,8 do
sv=sin(t/2+ly/16)
for lx=1,8 do
line(0,64+lx+sv*40,128,64+lx+sv*40,lx+8)
end
end
for i=1,32 do
sv=sin(i/40+t/2)*sin(i/30+t/10)*40
for j=0,8 do
line(sv+j+64,0+i*2,sv+j+64,128,j+8)
end
end
end
Sharing is Caring!⌗
If you feel like it, why not share what you’ve done with us on the LoveByte Discord, #lovebyte on IRCnet, or share on Twitter and Mastodon using the hashtag #lovebytetcc