fork(29) download
#ruby Mendelbrot 1924-2010
require 'chunky_png'

png = ChunkyPNG::Image.new(513, 257, ChunkyPNG::Color::TRANSPARENT)

(-128..128).each { |c|
  (-256..256).each { |d|
    a = b = 0.0
    result = (1..70).each_with_index.find { 
      t = a * b
      a *= a
      b *= b
      a = a - b + d / 256.0 - 0.5;
      b = 2 * t + c / 128.0;
      a + b > 2 || (a + b).nan?
    }
    png[d + 256, c + 128] = result ? ChunkyPNG::Color.rgba(0, (result.last * 2.55).to_i, 0, 255) : ChunkyPNG::Color('black')
  }
}

png.write(STDOUT)
Success #stdin #stdout 14.98s 10400KB
stdin
Standard input is empty
stdout