# File lib/lilygraph.rb, line 77 def initialize(options = {}) @options = DEFAULT_OPTIONS.merge(options) @data = [] @labels = [] @colors = Proc.new do |data_index, number_index, data_size, number_size| Color::HSL.from_fraction(Float(data_index) / Float(data_size), 1.0, 0.4 + (Float(number_index) / Float(number_size) * 0.4)).to_rgb.html end end