shapes

package
v1.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package shapes implements some geometric shapes to be used in project

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildChevron added in v1.4.0

func BuildChevron(width, height float64) [2]string

BuildChevron returns string representing a chevron shape

func BuildDiamond added in v1.4.0

func BuildDiamond(width, height float64) string

BuildDiamond returns string representing a diamond shape

func BuildHexagon added in v1.4.0

func BuildHexagon(sideLength float64) string

BuildHexagon returns string representing a hexagon shape

func BuildOctagon added in v1.4.0

func BuildOctagon(squareSize float64) string

BuildOctagon returns string representing an octagon shape

func BuildPlus added in v1.4.0

func BuildPlus(squareSize float64) [2]string

BuildPlus returns string representing an plus shape

func BuildRightTriangle added in v1.4.0

func BuildRightTriangle(sideLength float64) string

BuildRightTriangle returns string representing a right angle triangle shape

func BuildRotatedTriangle added in v1.4.0

func BuildRotatedTriangle(sideLength, width float64) string

BuildRotatedTriangle returns string representing a rotated triangle shape

func BuildTriangle added in v1.4.0

func BuildTriangle(sideLength, height float64) string

BuildTriangle returns string representing a triangle shape

func DrawInnerMosaicTile added in v1.4.0

func DrawInnerMosaicTile(s *svg.SVG, x, y, triangleSize float64, values [2]float64)

DrawInnerMosaicTile returns string representing an inner mosaic tile shape

func DrawOuterMosaicTile added in v1.4.0

func DrawOuterMosaicTile(s *svg.SVG, x, y, triangleSize, value float64)

DrawOuterMosaicTile returns string representing an outer mosaic tile shape

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL