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

There are IFS-like fractals that can be generated using small iterative functions. Here are examples in JavaScript that can be remixed (and they are very short, only 140 characters or less). E.g.: https://www.dwitter.net/h/fractal and https://www.dwitter.net/h/fern

Dwitter is a cool social network where JavaScript programmers can share demos, fractals, art algorithms and interactive code viewed on <canvas>.




i'd say these are still ifses, just not linear ones

dwitter looks pretty cool. like twitter if it was designed for creativity and beauty instead of trolling

i did a golfed emoji ifs the other day in python but it's 288 characters, not 140 or even 280: http://canonical.org/~kragen/sw/dev3/hilbert.py

i feel like the three levels of representation needed to draw l-systems on a raster display (strings, turtle commands, and cartesian coordinates) sort of disfavor golfing. i managed to get an ascii-art ifs down to 259 strokes by using complex numbers instead of vectors: http://canonical.org/~kragen/sw/dev3/cifs.py


That's great, thanks for sharing!




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

Search: