Renderers::Base
The Fractal base class.
The complex number seed.
A Hash of arguments used in the fractal’s expression.
The fractal’s expression as a block.
Sets the default property values.
# File lib/fractals.rb, line 46 def initialize(c, args, &expression) @c, @args, @expression = c, args, expression super() end
Iterates the fractal’s expression n times yielding the iteration number and result.
# File lib/fractals.rb, line 53 def iterate(n) @args[:z] = @args[:c] n.times do |i| @expression.call(@args) yield i, @args[:z] end end
Disabled; run with --debug to generate this.
[Validate]
Generated with the Darkfish Rdoc Generator 1.1.6.