Documentation
¶
Overview ¶
Package shapes implements some geometric shapes to be used in project
Index ¶
- func BuildChevron(width, height float64) [2]string
- func BuildDiamond(width, height float64) string
- func BuildHexagon(sideLength float64) string
- func BuildOctagon(squareSize float64) string
- func BuildPlus(squareSize float64) [2]string
- func BuildRightTriangle(sideLength float64) string
- func BuildRotatedTriangle(sideLength, width float64) string
- func BuildTriangle(sideLength, height float64) string
- func DrawInnerMosaicTile(s *svg.SVG, x, y, triangleSize float64, values [2]float64)
- func DrawOuterMosaicTile(s *svg.SVG, x, y, triangleSize, value float64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildChevron ¶ added in v1.4.0
BuildChevron returns string representing a chevron shape
func BuildDiamond ¶ added in v1.4.0
BuildDiamond returns string representing a diamond shape
func BuildHexagon ¶ added in v1.4.0
BuildHexagon returns string representing a hexagon shape
func BuildOctagon ¶ added in v1.4.0
BuildOctagon returns string representing an octagon shape
func BuildRightTriangle ¶ added in v1.4.0
BuildRightTriangle returns string representing a right angle triangle shape
func BuildRotatedTriangle ¶ added in v1.4.0
BuildRotatedTriangle returns string representing a rotated triangle shape
func BuildTriangle ¶ added in v1.4.0
BuildTriangle returns string representing a triangle shape
func DrawInnerMosaicTile ¶ added in v1.4.0
DrawInnerMosaicTile returns string representing an inner mosaic tile shape
func DrawOuterMosaicTile ¶ added in v1.4.0
DrawOuterMosaicTile returns string representing an outer mosaic tile shape
Types ¶
This section is empty.