Method: Sketch::DSL#hexagon
- Defined in:
- lib/sketch/dsl.rb
#hexagon(options = {}) ⇒ RegularPolygon
Create a RegularPolygon with 6 sides
25 26 27 28 |
# File 'lib/sketch/dsl.rb', line 25 def hexagon(={}) [:sides] = 6 Geometry::RegularPolygon.new().tap {|a| push a } end |