Documentation ¶
Index ¶
Constants ¶
View Source
const CELL_SIZE float64 = 20
Variables ¶
This section is empty.
Functions ¶
func DrawDiagram ¶
Generate diagram into the output file
Types ¶
type Diagram ¶
type Diagram struct{}
Empty struct
func (*Diagram) ParseASCIIArt ¶
Parses given ASCII art string into a list of figures.
type Drawer ¶
type Drawer interface {
Draw(*Canvas)
}
Drawer interface. Struct needs to implement the Draw method.
type Line ¶
type Line struct {
// contains filtered or unexported fields
}
Line struct defines the line x & y coordinates, the starting and ending type and the color.
type Point ¶
type Point struct {
// contains filtered or unexported fields
}
Auxiliary Point struct used during parsing.
Click to show internal directories.
Click to hide internal directories.