Module: TrianglePattern

Defined in:
lib/triangle_pattern.rb,
lib/triangle_pattern/grid.rb,
lib/triangle_pattern/pattern.rb,
lib/triangle_pattern/version.rb,
lib/triangle_pattern/rake_task.rb,
lib/triangle_pattern/svg_image.rb,
lib/triangle_pattern/triangle_task.rb

Defined Under Namespace

Classes: Grid, Pattern, RakeTask, SvgImage, TriangleTask

Constant Summary collapse

VERSION =
"0.2.2"

Class Method Summary collapse

Class Method Details

.generate(width: 900, height: 500, cell_size: 75, variance: 0.75, seed: 135, colors: ["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"]) ⇒ Object



10
11
12
# File 'lib/triangle_pattern.rb', line 10

def self.generate(width: 900, height: 500, cell_size: 75, variance: 0.75, seed: 135, colors: ["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"])
  TrianglePattern::Pattern.new(width, height, cell_size, variance, seed, colors)
end