Initialize sets all of the canvas's values to their initial values.
(c Canvas)
| 99 | // Initialize sets all of the canvas's values to their |
| 100 | // initial values. |
| 101 | func Initialize(c Canvas) { |
| 102 | c.SetLineWidth(Points(1)) |
| 103 | c.SetLineDash([]Length{}, 0) |
| 104 | c.SetColor(color.Black) |
| 105 | } |
| 106 | |
| 107 | type Path []PathComp |
| 108 |