20 lines
334 B
Go
20 lines
334 B
Go
//go:build pull
|
|
package rotate
|
|
|
|
import (
|
|
"image"
|
|
"image/color"
|
|
)
|
|
|
|
type Rotate struct {
|
|
image.Image
|
|
Angle float64 // math.Pi * n
|
|
}
|
|
|
|
func (rot Rotate) Bounds() image.Rectangle { return rot.Image.Bounds() }
|
|
func (rot Rotate) ColorModel() color.Model { return rot.Image.ColorModel() }
|
|
|
|
func (rot Rotate) At(x, y int) color.Color {
|
|
|
|
}
|