Method: Nyaplot::Colors.seq

Defined in:
lib/nyaplot/color.rb

.seq(num) ⇒ Nyaplot::Color

Returns A colorset randomly selected from sequential ones.

Returns:

  • (Nyaplot::Color)

    A colorset randomly selected from sequential ones



27
28
29
30
# File 'lib/nyaplot/color.rb', line 27

define_method(:seq) {|num=nil|
  seq = color_set.select{|name, colors| colors["type"] == "seq"}
  self.send(seq.keys.sample, num)
}