Art From Code [2008-2024]

Butterflies


[ particles ]

p = ecos(θ) – 2 cos(4 θ) + sin5(θ/12)

or in ActionScript:

var r:Number = Math.exp(Math.cos(i)) – 2 * Math.cos(i * 4) + Math.pow(Math.sin(i / 12), 5);

r = radius, θ = angle. Figure out the x and y from there.

Randomly scale, position, rotate. Coat with bevel and dropshadow. Bake at 350Ëš for 30 minutes. Serves 5.

Dug up in Computers and the Imagination by Clifford Pickover.

« Previous Post
Next Post »

Comments? Best way to shout at me is on Mastodon

Or share this post directly on Mastodon