From aa39c12d28e02d208fdbd2c045cd521ab499c7e7 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Wed, 14 Feb 2018 02:59:22 +0900 Subject: [PATCH] docs: Update --- docs/examples/alphablending.html | 2 +- docs/examples/flood.html | 2 +- docs/examples/highdpi.html | 4 +++- docs/examples/hsv.html | 2 +- docs/examples/hue.html | 2 +- docs/examples/infinitescroll.html | 2 +- docs/examples/keyboard.html | 2 +- docs/examples/mandelbrot.html | 2 +- docs/examples/masking.html | 8 ++++---- docs/examples/mosaic.html | 4 ++-- docs/examples/paint.html | 4 ++-- docs/examples/perspective.html | 2 +- docs/examples/piano.html | 2 +- docs/examples/rotate.html | 2 +- docs/examples/sprites.html | 4 ++-- docs/examples/tiles.html | 2 +- docs/images/logo.txt | 4 ++++ 17 files changed, 28 insertions(+), 22 deletions(-) create mode 100644 docs/images/logo.txt diff --git a/docs/examples/alphablending.html b/docs/examples/alphablending.html index c8cab780a..4175d7b76 100644 --- a/docs/examples/alphablending.html +++ b/docs/examples/alphablending.html @@ -82,7 +82,7 @@ func update(screen *ebiten.Image) error { func main() { var err error - ebitenImage, _, err = ebitenutil.NewImageFromFile("_resources/images/ebiten.png", ebiten.FilterNearest) + ebitenImage, _, err = ebitenutil.NewImageFromFile("_resources/images/ebiten.png", ebiten.FilterDefault) if err != nil { log.Fatal(err) } diff --git a/docs/examples/flood.html b/docs/examples/flood.html index c136f64aa..e224b59b6 100644 --- a/docs/examples/flood.html +++ b/docs/examples/flood.html @@ -98,7 +98,7 @@ func update(screen *ebiten.Image) error { func main() { var err error - ebitenImage, _, err = ebitenutil.NewImageFromFile("_resources/images/ebiten.png", ebiten.FilterNearest) + ebitenImage, _, err = ebitenutil.NewImageFromFile("_resources/images/ebiten.png", ebiten.FilterDefault) if err != nil { log.Fatal(err) } diff --git a/docs/examples/highdpi.html b/docs/examples/highdpi.html index f852a2de4..ce9325d0c 100644 --- a/docs/examples/highdpi.html +++ b/docs/examples/highdpi.html @@ -66,7 +66,7 @@ func init() { log.Fatal(err) } - eimg, err := ebiten.NewImageFromImage(img, ebiten.FilterLinear) + eimg, err := ebiten.NewImageFromImage(img, ebiten.FilterDefault) if err != nil { log.Fatal(err) } @@ -113,6 +113,8 @@ func update(screen *ebiten.Image) error { // Move the image's center to the screen's center. op.GeoM.Translate(float64(sw)/2, float64(sh)/2) + + op.Filter = ebiten.FilterLinear screen.DrawImage(highDPIImage, op) ebitenutil.DebugPrint(screen, fmt.Sprintf("Device Scale Ratio: %0.2f", scale)) diff --git a/docs/examples/hsv.html b/docs/examples/hsv.html index e5f88eb15..5e3084ccf 100644 --- a/docs/examples/hsv.html +++ b/docs/examples/hsv.html @@ -140,7 +140,7 @@ Inverted: %s [I]`, hue, saturation, value, msgInverted) func main() { var err error - gophersImage, _, err = ebitenutil.NewImageFromFile("_resources/images/gophers.jpg", ebiten.FilterNearest) + gophersImage, _, err = ebitenutil.NewImageFromFile("_resources/images/gophers.jpg", ebiten.FilterDefault) if err != nil { log.Fatal(err) } diff --git a/docs/examples/hue.html b/docs/examples/hue.html index 4a8f67859..45b1002a7 100644 --- a/docs/examples/hue.html +++ b/docs/examples/hue.html @@ -71,7 +71,7 @@ func update(screen *ebiten.Image) error { func main() { var err error - gophersImage, _, err = ebitenutil.NewImageFromFile("_resources/images/gophers.jpg", ebiten.FilterNearest) + gophersImage, _, err = ebitenutil.NewImageFromFile("_resources/images/gophers.jpg", ebiten.FilterDefault) if err != nil { log.Fatal(err) } diff --git a/docs/examples/infinitescroll.html b/docs/examples/infinitescroll.html index a1629532e..41091d4e3 100644 --- a/docs/examples/infinitescroll.html +++ b/docs/examples/infinitescroll.html @@ -51,7 +51,7 @@ var ( func init() { var err error - bgImage, _, err = ebitenutil.NewImageFromFile("_resources/images/tile.png", ebiten.FilterNearest) + bgImage, _, err = ebitenutil.NewImageFromFile("_resources/images/tile.png", ebiten.FilterDefault) if err != nil { log.Fatal(err) } diff --git a/docs/examples/keyboard.html b/docs/examples/keyboard.html index ad2d0f5db..8f7f7c01b 100644 --- a/docs/examples/keyboard.html +++ b/docs/examples/keyboard.html @@ -50,7 +50,7 @@ var keyboardImage *ebiten.Image func init() { var err error - keyboardImage, _, err = ebitenutil.NewImageFromFile("_resources/images/keyboard/keyboard.png", ebiten.FilterNearest) + keyboardImage, _, err = ebitenutil.NewImageFromFile("_resources/images/keyboard/keyboard.png", ebiten.FilterDefault) if err != nil { log.Fatal(err) } diff --git a/docs/examples/mandelbrot.html b/docs/examples/mandelbrot.html index 0bb14fc5c..921d5dd9c 100644 --- a/docs/examples/mandelbrot.html +++ b/docs/examples/mandelbrot.html @@ -51,7 +51,7 @@ var ( ) func init() { - offscreen, _ = ebiten.NewImage(screenWidth, screenHeight, ebiten.FilterNearest) + offscreen, _ = ebiten.NewImage(screenWidth, screenHeight, ebiten.FilterDefault) offscreenPix = make([]byte, screenWidth*screenHeight*4) for i := range palette { palette[i] = byte(math.Sqrt(float64(i)/float64(len(palette))) * 0x80) diff --git a/docs/examples/masking.html b/docs/examples/masking.html index 12a51834f..c3f5807e1 100644 --- a/docs/examples/masking.html +++ b/docs/examples/masking.html @@ -60,17 +60,17 @@ var ( func init() { var err error - bgImage, _, err = ebitenutil.NewImageFromFile("_resources/images/gophers.jpg", ebiten.FilterNearest) + bgImage, _, err = ebitenutil.NewImageFromFile("_resources/images/gophers.jpg", ebiten.FilterDefault) if err != nil { log.Fatal(err) } - fgImage, _, err = ebitenutil.NewImageFromFile("_resources/images/fiveyears.jpg", ebiten.FilterNearest) + fgImage, _, err = ebitenutil.NewImageFromFile("_resources/images/fiveyears.jpg", ebiten.FilterDefault) if err != nil { log.Fatal(err) } - maskedFgImage, _ = ebiten.NewImage(screenWidth, screenHeight, ebiten.FilterNearest) + maskedFgImage, _ = ebiten.NewImage(screenWidth, screenHeight, ebiten.FilterDefault) // Initialize the spot light image. const r = 64 @@ -85,7 +85,7 @@ func init() { a.SetAlpha(i, j, color.Alpha{b}) } } - spotLightImage, _ = ebiten.NewImageFromImage(a, ebiten.FilterNearest) + spotLightImage, _ = ebiten.NewImageFromImage(a, ebiten.FilterDefault) } func update(screen *ebiten.Image) error { diff --git a/docs/examples/mosaic.html b/docs/examples/mosaic.html index 2c1d38096..4a42a3d58 100644 --- a/docs/examples/mosaic.html +++ b/docs/examples/mosaic.html @@ -53,7 +53,7 @@ var ( func init() { var err error - gophersImage, _, err = ebitenutil.NewImageFromFile("_resources/images/gophers.jpg", ebiten.FilterNearest) + gophersImage, _, err = ebitenutil.NewImageFromFile("_resources/images/gophers.jpg", ebiten.FilterDefault) if err != nil { log.Fatal(err) } @@ -79,7 +79,7 @@ func update(screen *ebiten.Image) error { func main() { w, h := gophersImage.Size() - gophersRenderTarget, _ = ebiten.NewImage(w/mosaicRatio, h/mosaicRatio, ebiten.FilterNearest) + gophersRenderTarget, _ = ebiten.NewImage(w/mosaicRatio, h/mosaicRatio, ebiten.FilterDefault) if err := ebiten.Run(update, screenWidth, screenHeight, 2, "Mosaic (Ebiten Demo)"); err != nil { log.Fatal(err) } diff --git a/docs/examples/paint.html b/docs/examples/paint.html index 8980b1c49..6c3a53ac4 100644 --- a/docs/examples/paint.html +++ b/docs/examples/paint.html @@ -69,9 +69,9 @@ func init() { Pix: pixels, Stride: 4, Rect: image.Rect(0, 0, 4, 4), - }, ebiten.FilterNearest) + }, ebiten.FilterDefault) - canvasImage, _ = ebiten.NewImage(screenWidth, screenHeight, ebiten.FilterNearest) + canvasImage, _ = ebiten.NewImage(screenWidth, screenHeight, ebiten.FilterDefault) canvasImage.Fill(color.White) } diff --git a/docs/examples/perspective.html b/docs/examples/perspective.html index 5c666c102..f6884d794 100644 --- a/docs/examples/perspective.html +++ b/docs/examples/perspective.html @@ -81,7 +81,7 @@ func update(screen *ebiten.Image) error { func main() { var err error - gophersImage, _, err = ebitenutil.NewImageFromFile("_resources/images/gophers.jpg", ebiten.FilterNearest) + gophersImage, _, err = ebitenutil.NewImageFromFile("_resources/images/gophers.jpg", ebiten.FilterDefault) if err != nil { log.Fatal(err) } diff --git a/docs/examples/piano.html b/docs/examples/piano.html index bcc7ba809..353e6f36a 100644 --- a/docs/examples/piano.html +++ b/docs/examples/piano.html @@ -179,7 +179,7 @@ var ( ) func init() { - pianoImage, _ = ebiten.NewImage(screenWidth, screenHeight, ebiten.FilterNearest) + pianoImage, _ = ebiten.NewImage(screenWidth, screenHeight, ebiten.FilterDefault) const ( keyWidth = 24 diff --git a/docs/examples/rotate.html b/docs/examples/rotate.html index 7293a9246..e3f80b3cf 100644 --- a/docs/examples/rotate.html +++ b/docs/examples/rotate.html @@ -75,7 +75,7 @@ func update(screen *ebiten.Image) error { func main() { var err error - gophersImage, _, err = ebitenutil.NewImageFromFile("_resources/images/gophers.jpg", ebiten.FilterNearest) + gophersImage, _, err = ebitenutil.NewImageFromFile("_resources/images/gophers.jpg", ebiten.FilterDefault) if err != nil { log.Fatal(err) } diff --git a/docs/examples/sprites.html b/docs/examples/sprites.html index a528e1fb7..3f16746d4 100644 --- a/docs/examples/sprites.html +++ b/docs/examples/sprites.html @@ -105,12 +105,12 @@ var ( ) func init() { - img, _, err := ebitenutil.NewImageFromFile("_resources/images/ebiten.png", ebiten.FilterNearest) + img, _, err := ebitenutil.NewImageFromFile("_resources/images/ebiten.png", ebiten.FilterDefault) if err != nil { log.Fatal(err) } w, h := img.Size() - ebitenImage, _ = ebiten.NewImage(w, h, ebiten.FilterNearest) + ebitenImage, _ = ebiten.NewImage(w, h, ebiten.FilterDefault) op := &ebiten.DrawImageOptions{} op.ColorM.Scale(1, 1, 1, 0.5) ebitenImage.DrawImage(img, op) diff --git a/docs/examples/tiles.html b/docs/examples/tiles.html index a6f21e292..3fb747394 100644 --- a/docs/examples/tiles.html +++ b/docs/examples/tiles.html @@ -57,7 +57,7 @@ var ( func init() { var err error - tilesImage, _, err = ebitenutil.NewImageFromFile("_resources/images/tiles.png", ebiten.FilterNearest) + tilesImage, _, err = ebitenutil.NewImageFromFile("_resources/images/tiles.png", ebiten.FilterDefault) if err != nil { log.Fatal(err) } diff --git a/docs/images/logo.txt b/docs/images/logo.txt new file mode 100644 index 000000000..8f01395d2 --- /dev/null +++ b/docs/images/logo.txt @@ -0,0 +1,4 @@ +Red: 0080-Y70R #DD664F +Yellow1: 0080-Y #FFDB33 +Yellow2: 0080-Y10R #FACB37 +Yellow3: 0080-Y20R #F5BA3B