(x, y, theta float64)
| 162 | } |
| 163 | |
| 164 | func rotate(x, y, theta float64) (rx, ry float64) { |
| 165 | rx = x*math.Cos(theta) - y*math.Sin(theta) |
| 166 | ry = x*math.Sin(theta) + y*math.Cos(theta) |
| 167 | return |
| 168 | } |
| 169 | |
| 170 | func imageToRGBA(src image.Image) *image.RGBA { |
| 171 | dst := image.NewRGBA(src.Bounds()) |