Sitemap
PARALLEL PRESS

A walk in parallel worlds of art and tech.

Recursion Art

--

I was attracted to geometry a lot. I can play with very simple shapes for quite a while, even just square, circle or triangle. I always believe if there exits truth in the world, it must be simple and pretty as geometry, as math.

Get Yanling He’s stories in your inbox

Join Medium for free to get updates from this writer.

Sometime, like a sunny Saturday morning, I really want to create something. I drew a square on a paper. I thought it is too plain there should be more, so I drew another one. Then I thought why the square I already drew cannot drew another one, like drawing a baby version of itself. So I write drawSquare recursion function to call itself.

Press enter or click to view image in full size

Squares can have different gradients.

Press enter or click to view image in full size

Squares can have different colors.

Press enter or click to view image in full size

But they all follow the same rule of producing small squares.

Press enter or click to view image in full size

Until a point. Itself decide to stop.

Press enter or click to view image in full size

It is quite amazing how it is similar to generating people, but we have a more ambiguous ending point.

--

--