(dc *gg.Context, scale float64)
| 35 | } |
| 36 | |
| 37 | func (r *Rectangle) Draw(dc *gg.Context, scale float64) { |
| 38 | x1, y1, x2, y2 := r.bounds() |
| 39 | dc.DrawRectangle(float64(x1), float64(y1), float64(x2-x1+1), float64(y2-y1+1)) |
| 40 | dc.Fill() |
| 41 | } |
| 42 | |
| 43 | func (r *Rectangle) SVG(attrs string) string { |
| 44 | x1, y1, x2, y2 := r.bounds() |