shapes

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 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 Build_chevron

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

Build_chevron returns string representing a chevron shape

func Build_diamond

func Build_diamond(width, height float64) string

Build_diamond returns string representing a diamond shape

func Build_hexagon

func Build_hexagon(side_length float64) string

Build_hexagon returns string representing a hexagon shape

func Build_octagon

func Build_octagon(square_size float64) string

Build_octagon returns string representing an octagon shape

func Build_plus

func Build_plus(square_size float64) [2]string

Build_plus returns string representing an plus shape

func Build_right_triangle

func Build_right_triangle(side_length float64) string

Build_right_triangle returns string representing a right angle triangle shape

func Build_rotated_triangle

func Build_rotated_triangle(side_length, width float64) string

Build_rotated_triangle returns string representing a rotated triangle shape

func Build_triangle

func Build_triangle(side_length, height float64) string

Build_triangle returns string representing a triangle shape

func Draw_inner_mosaic_tile

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

Draw_inner_mosaic_tile returns string representing an inner mosaic tile shape

func Draw_outer_mosaic_tile

func Draw_outer_mosaic_tile(s *svg.SVG, x, y, triangle_size, value float64)

Draw_outer_mosaic_tile 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