From bfa7e42368985f479bffe5e6592ef97803a5798d Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 19 Jan 2020 04:52:12 +0900 Subject: [PATCH] docs: Use pkg.go.dev instead of godoc.org (Go files) --- examples/blur/main.go | 2 +- examples/sprites/main.go | 2 +- examples/spriteshd/main.go | 2 +- examples/tiles/main.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/blur/main.go b/examples/blur/main.go index da9fd1af4..9f2e33d4b 100644 --- a/examples/blur/main.go +++ b/examples/blur/main.go @@ -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) diff --git a/examples/sprites/main.go b/examples/sprites/main.go index 2ce6e932e..ed34ebae9 100644 --- a/examples/sprites/main.go +++ b/examples/sprites/main.go @@ -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] diff --git a/examples/spriteshd/main.go b/examples/spriteshd/main.go index fdc9e8427..a61c54afc 100644 --- a/examples/spriteshd/main.go +++ b/examples/spriteshd/main.go @@ -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] diff --git a/examples/tiles/main.go b/examples/tiles/main.go index 9d3d0bfda..48a08ccb8 100644 --- a/examples/tiles/main.go +++ b/examples/tiles/main.go @@ -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 {