docs: Use pkg.go.dev instead of godoc.org (Go files)

This commit is contained in:
Hajime Hoshi 2020-01-19 04:52:12 +09:00
parent 31482ebbbd
commit bfa7e42368
4 changed files with 4 additions and 4 deletions

View File

@ -53,7 +53,7 @@ func update(screen *ebiten.Image) error {
// Alpha scale should be 1.0/49.0, but accumulating 1/49 49 times doesn't reach to 1, because
// the final color is affected by the destination alpha when CompositeModeSourceOver is used.
// This composite mode is the default mode. See how this is calculated at the doc:
// https://godoc.org/github.com/hajimehoshi/ebiten#CompositeMode
// https://pkg.go.dev/github.com/hajimehoshi/ebiten#CompositeMode
//
// Use a higher value than 1.0/49.0. Here, 1.0/25.0 here to get a reasonable result.
op.ColorM.Scale(1, 1, 1, 1.0/25.0)

View File

@ -182,7 +182,7 @@ func update(screen *ebiten.Image) error {
// the actual draw call to GPU is very few since these calls satisfy
// some conditions e.g. all the rendering sources and targets are same.
// For more detail, see:
// https://godoc.org/github.com/hajimehoshi/ebiten#Image.DrawImage
// https://pkg.go.dev/github.com/hajimehoshi/ebiten#Image.DrawImage
w, h := ebitenImage.Size()
for i := 0; i < sprites.num; i++ {
s := sprites.sprites[i]

View File

@ -168,7 +168,7 @@ func update(screen *ebiten.Image) error {
// the actual draw call to GPU is very few since these calls satisfy
// some conditions e.g. all the rendering sources and targets are same.
// For more detail, see:
// https://godoc.org/github.com/hajimehoshi/ebiten#Image.DrawImage
// https://pkg.go.dev/github.com/hajimehoshi/ebiten#Image.DrawImage
w, h := ebitenImage.Size()
for i := 0; i < sprites.num; i++ {
s := sprites.sprites[i]

View File

@ -110,7 +110,7 @@ func update(screen *ebiten.Image) error {
// Draw each tile with each DrawImage call.
// As the source images of all DrawImage calls are always same,
// this rendering is done very effectively.
// For more detail, see https://godoc.org/github.com/hajimehoshi/ebiten#Image.DrawImage
// For more detail, see https://pkg.go.dev/github.com/hajimehoshi/ebiten#Image.DrawImage
const xNum = screenWidth / tileSize
for _, l := range layers {
for i, t := range l {