Class: VectorSalad::StandardShapes::Hexagon
- Inherits:
-
Polygon
- Object
- BasicShape
- Polygon
- VectorSalad::StandardShapes::Hexagon
- Defined in:
- lib/vector_salad/standard_shapes/hexagon.rb
Overview
Regular hexagon shape.
Instance Attribute Summary
Attributes inherited from Polygon
Attributes inherited from BasicShape
Instance Method Summary collapse
-
#initialize(radius, **options) ⇒ Hexagon
constructor
Create a regular hexagon.
Methods inherited from Polygon
Methods included from Mixins::At
Methods inherited from BasicShape
#flip, #flip_x, #flip_y, #jitter, #move, #rotate, #scale, #to_a, #to_bezier_path, #to_cubic_path, #to_multi_path, #to_path, #to_simple_path, #to_svg
Constructor Details
#initialize(radius, **options) ⇒ Hexagon
Create a regular hexagon.
11 12 13 |
# File 'lib/vector_salad/standard_shapes/hexagon.rb', line 11 def initialize(radius, **) super(6, radius, **) end |