Documentation ¶
Overview ¶
Package shapes implements some geometric shapes to be used in project
Index ¶
- func Build_chevron(width, height float64) [2]string
- func Build_diamond(width, height float64) string
- func Build_hexagon(side_length float64) string
- func Build_octagon(square_size float64) string
- func Build_plus(square_size float64) [2]string
- func Build_right_triangle(side_length float64) string
- func Build_rotated_triangle(side_length, width float64) string
- func Build_triangle(side_length, height float64) string
- func Draw_inner_mosaic_tile(s *svg.SVG, x, y, triangle_size float64, values [2]float64)
- func Draw_outer_mosaic_tile(s *svg.SVG, x, y, triangle_size, value float64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Build_chevron ¶
Build_chevron returns string representing a chevron shape
func Build_diamond ¶
Build_diamond returns string representing a diamond shape
func Build_hexagon ¶
Build_hexagon returns string representing a hexagon shape
func Build_octagon ¶
Build_octagon returns string representing an octagon shape
func Build_plus ¶
Build_plus returns string representing an plus shape
func Build_right_triangle ¶
Build_right_triangle returns string representing a right angle triangle shape
func Build_rotated_triangle ¶
Build_rotated_triangle returns string representing a rotated triangle shape
func Build_triangle ¶
Build_triangle returns string representing a triangle shape
func Draw_inner_mosaic_tile ¶
Draw_inner_mosaic_tile returns string representing an inner mosaic tile shape
func Draw_outer_mosaic_tile ¶
Draw_outer_mosaic_tile returns string representing an outer mosaic tile shape
Types ¶
This section is empty.