doc: Fix comments

This commit is contained in:
Hajime Hoshi 2016-05-14 20:43:36 +09:00
parent 9d25a5f785
commit 55d06f3bdb
3 changed files with 7 additions and 7 deletions

View File

@ -176,7 +176,7 @@ func Monochrome() ColorM {
return monochrome
}
// Deprecated as of 1.2.0-alpha. Use Scale instead.
// ScaleColor is deprecated as of 1.2.0-alpha. Use Scale instead.
func ScaleColor(r, g, b, a float64) ColorM {
return ColorM{
initialized: true,
@ -189,7 +189,7 @@ func ScaleColor(r, g, b, a float64) ColorM {
}
}
// Deprecated as of 1.2.0-alpha. Use Translate instead.
// TranslateColor is deprecated as of 1.2.0-alpha. Use Translate instead.
func TranslateColor(r, g, b, a float64) ColorM {
return ColorM{
initialized: true,
@ -202,7 +202,7 @@ func TranslateColor(r, g, b, a float64) ColorM {
}
}
// Deprecated as of 1.2.0-alpha. Use RotateHue member function instead.
// RotateHue is deprecated as of 1.2.0-alpha. Use RotateHue member function instead.
func RotateHue(theta float64) ColorM {
c := ColorM{}
c.RotateHue(theta)

View File

@ -111,7 +111,7 @@ func (g *GeoM) SetElement(i, j int, element float64) {
g.es[i][j] = element
}
// Deprecated as of 1.2.0-alpha. Use Scale instead.
// ScaleGeo is deprecated as of 1.2.0-alpha. Use Scale instead.
func ScaleGeo(x, y float64) GeoM {
return GeoM{
initialized: true,
@ -122,7 +122,7 @@ func ScaleGeo(x, y float64) GeoM {
}
}
// Deprecated as of 1.2.0-alpha. Use Translate instead.
// TranslateGeo is deprecated as of 1.2.0-alpha. Use Translate instead.
func TranslateGeo(tx, ty float64) GeoM {
return GeoM{
initialized: true,
@ -133,7 +133,7 @@ func TranslateGeo(tx, ty float64) GeoM {
}
}
// Deprecated as of 1.2.0-alpha. Use Rotate instead.
// RotateGeo is deprecated as of 1.2.0-alpha. Use Rotate instead.
func RotateGeo(theta float64) GeoM {
sin, cos := math.Sincos(theta)
return GeoM{

View File

@ -22,7 +22,7 @@ import (
"github.com/hajimehoshi/ebiten/internal/graphics"
)
// Deprecated (as of 1.1.0-alpha): Use ImageParts instead.
// An ImagePart is deprecated (as of 1.1.0-alpha): Use ImageParts instead.
type ImagePart struct {
Dst image.Rectangle
Src image.Rectangle