Hacker News new | past | comments | ask | show | jobs | submit login

do you have the source code of this?

I had an awesome idea a long time ago that is almost the same as that, but I was a CS noob and tried it in Java...

can you throw that on Github with a license?




Sure. This was based on a life program I wrote in JavaScript a long time ago that used DIVs, because canvas didn't yet exist at the time. The color version was made a few years later by taking the nLife code, switching it to use canvas, and adding the color rules. I just tarred it all up and left in the nLife license, which I think is BSD w/ advertising clause. You can find the source here:

http://www.node99.net/content/nlife/nlife-canvas-color.tgz

I'm fairly certain from watching it that there is a bug in the selection of the most dominant color, since sometimes a color that died off manages to come back. Anyway, if you make it do anything interesting, please share. I'd definitely like to see.


cheers!




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: