SplitVertical returns the lower and upper portions of c after splitting it along a horizontal line distance y from the bottom of c.
(c draw.Canvas, y vg.Length)
| 13 | // splitting it along a horizontal line distance y from the |
| 14 | // bottom of c. |
| 15 | func SplitVertical(c draw.Canvas, y vg.Length) (lower, upper draw.Canvas) { |
| 16 | return draw.Crop(c, 0, 0, 0, c.Min.Y-c.Max.Y+y), draw.Crop(c, 0, 0, y, 0) |
| 17 | } |
no test coverage detected