Rotate creates a filter that rotates an image by the given angle counter-clockwise. The angle parameter is the rotation angle in degrees. The backgroundColor parameter specifies the color of the uncovered zone after the rotation. The interpolation parameter specifies the interpolation method. Supported interpolation methods: NearestNeighborInterpolation, LinearInterpolation, CubicInterpolation.


g := gift.New(
	gift.Rotate(45, color.Black, gift.LinearInterpolation),
dst := image.NewRGBA(g.Bounds(src.Bounds()))
g.Draw(dst, src)

Rotate is referenced in 3 repositories