Post

#pico8 gas giant (204 bytes) ?"\^!5f100β–ˆΛ‡β˜‰8πŸ…ΎοΈβ—†?7" ::_::x=rnd(4)-2y=rnd(4)-2d=x*x+y*y c=max(2-d/4)if(d<1)z=sqrt(1-d)c=2+(1.5+(x-y+z)*2+abs((y+sin(atan2(x,z)*8+t()/8)/14-z/4)%.4-.2)*5)*(1-(1-z)^2) pset(64+x*32,64+y*32,c+rnd())goto _

19 reposts105 likes

thanks, and yes! if you paste the code into a blank pico8 cartridge, it'll draw the above image you can try it at www.pico-8-edu.com - once it boots into its command-line: 1. hit ESC to go to the code editor 2. paste the code 3. hit ESC again to go back to cmd 4. use the RUN command to execute

O wow, I did it! That is amazing. I must learn more about this kind of stuff. I am used to using a 3D engine to do all the rendering, so this kind of stuff seems like wizardry to me :)

it's a lot of fun! the code is insane to read though, since it's going for fewest-characters-possible - here's an expanded version (with sane whitespace/linebreaks and less "let's do a mega-expression on one huge line") with a bunch of comments explaining wtf is going on pastebin.com/PAPZtKK1

pastebin.com"gas giant" tweetjam explanation - Pastebin.comPastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.