func flattenPath(p raster.Path) [][]Point { … } func dashPath(paths [][]Point, dashes []float64, offset float64) [][]Point { … } func rasterPath(paths [][]Point) raster.Path { … } func dashed(path raster.Path, dashes []float64, offset float64) raster.Path { … }