Method: Sketch::DSL#hexagon

Defined in:
lib/sketch/dsl.rb

#hexagon(options = {}) ⇒ RegularPolygon

Create a RegularPolygon with 6 sides

Returns:

  • (RegularPolygon)


25
26
27
28
# File 'lib/sketch/dsl.rb', line 25

def hexagon(options={})
    options[:sides] = 6
    Geometry::RegularPolygon.new(options).tap {|a| push a }
end