fogleman / gg

Go Graphics - 2D rendering in Go with a simple API.
https://godoc.org/github.com/fogleman/gg
MIT License
4.37k stars 354 forks source link

An ability to set the space between dashes #123

Closed aivchen closed 3 years ago

aivchen commented 3 years ago

Now the space between dashes is calculated automatically. Would be great to have an option for setting custom space size.

fogleman commented 3 years ago

This is already possible. For example, dc.SetDash(4, 8, 1, 8) means 4 on, 8 off, 1 on, 8 off. This is in examples/cubic.go.

aivchen commented 3 years ago

Indeed! Thank you for your help!