mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
doc: Fix comments
This commit is contained in:
parent
9d25a5f785
commit
55d06f3bdb
@ -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)
|
||||
|
6
geom.go
6
geom.go
@ -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{
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user