mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-11 19:48:54 +01:00
docs: Use pkg.go.dev instead of godoc.org (Go files)
This commit is contained in:
parent
31482ebbbd
commit
bfa7e42368
@ -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)
|
||||
|
@ -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]
|
||||
|
@ -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]
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user