Example #1
0
// Parse will draw the line on the document for the given position and color.
func (b *Line) Parse(doc documents.Document) {
	doc.SetDrawColor(utils.HexToRGB(b.Color))
	doc.Line(b.Position.X, b.Position.Y, b.Position.X+b.W, b.Position.Y+b.H)
}