My current game project has been sucking up time, so the blogging schedule has become even more eccentric than usual. Nevertheless, please enjoy a procedurally-generated image of what I can only assume is a cartoon character getting shot in the head.
I produced the image by iterating the following code over (x, z).
function source(x, z) { var a = Math.sin(x) + Math.cos(z) + Math.sin(2 * x) + Math.cos(2 * z); a = Math.sin(x + a) + Math.cos(z + a) + Math.sin(2 * x + a) + Math.cos(2 * z + a); a = Math.sin(x + a) + Math.cos(z + a) + Math.sin(2 * x + a) + Math.cos(2 * z + a); a = Math.sin(x + a) + Math.cos(z + a) + Math.sin(2 * x + a) + Math.cos(2 * z + a); a = Math.sin(x + a) + Math.cos(z + a) + Math.sin(2 * x + a) + Math.cos(2 * z + a); a = Math.sin(x + a) + Math.cos(z + a) + Math.sin(2 * x + a) + Math.cos(2 * z + a); a = Math.sin(x + a) + Math.cos(z + a) + Math.sin(2 * x + a) + Math.cos(2 * z + a); return a; }
Obviously, I’ve been playing around with phase synthesis. I might even have a post about that at some point.