(scale float64, offset float64, d []float64)
| 156 | ) |
| 157 | |
| 158 | func ScaleDash(scale float64, offset float64, d []float64) (float64, []float64) { |
| 159 | d2 := make([]float64, len(d)) |
| 160 | for i := range d { |
| 161 | d2[i] = d[i] * scale |
| 162 | } |
| 163 | return offset * scale, d2 |
| 164 | } |
| 165 | |
| 166 | // Style is the path style that defines how to draw the path. When Fill is not set it will not fill the path. If StrokeColor is transparent or StrokeWidth is zero, it will not stroke the path. If Dashes is an empty array, it will not draw dashes but instead a solid stroke line. FillRule determines how to fill the path when paths overlap and have certain directions (clockwise, counter clockwise). |
| 167 | type Style struct { |
no outgoing calls
no test coverage detected