diff --git a/README.md b/README.md index 474984ea9..13fe24f16 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ Website: https://hajimehoshi.github.io/ebiten/ * [Android](https://github.com/hajimehoshi/ebiten/wiki/Android) * [iOS](https://github.com/hajimehoshi/ebiten/wiki/iOS) * [Web browsers (Chrome, Firefox, Safari and Edge on desktops)](https://github.com/hajimehoshi/ebiten/wiki/Web-Browsers) (powered by [GopherJS](http://gopherjs.org/)) - * [jsgo.io Playground by Dave Brophy](https://goo.gl/Qtz8ur) + * [jsgo.io Playground by Dave Brophy](https://jsgo.io/dave/jsgo/playground#9b4d11ce563df53cb7dff937baa707c3fd41310c) Note: Gamepad and keyboard are not available on Android/iOS. diff --git a/_docs/index.tmpl.html b/_docs/index.tmpl.html index 7ac0cb381..a17ca9eb3 100644 --- a/_docs/index.tmpl.html +++ b/_docs/index.tmpl.html @@ -25,7 +25,7 @@
Note: Gamepads and keyboard are not available on Android/iOS.
diff --git a/docs/examples/highdpi.html b/docs/examples/highdpi.html index c463e4920..6f80e8832 100644 --- a/docs/examples/highdpi.html +++ b/docs/examples/highdpi.html @@ -33,10 +33,8 @@ package main import ( "fmt" - "image" _ "image/jpeg" "log" - "net/http" "github.com/hajimehoshi/ebiten" "github.com/hajimehoshi/ebiten/ebitenutil" @@ -55,23 +53,11 @@ func init() { // Load the image asynchronously. go func() { - res, err := http.Get(url) + img, err := ebitenutil.NewImageFromURL(url) if err != nil { log.Fatal(err) } - defer res.Body.Close() - - img, _, err := image.Decode(res.Body) - if err != nil { - log.Fatal(err) - } - - eimg, err := ebiten.NewImageFromImage(img, ebiten.FilterDefault) - if err != nil { - log.Fatal(err) - } - - highDPIImageCh <- eimg + highDPIImageCh <- img close(highDPIImageCh) }() } diff --git a/docs/examples/sinewave.html b/docs/examples/sinewave.html index 819a93191..524b4c381 100644 --- a/docs/examples/sinewave.html +++ b/docs/examples/sinewave.html @@ -34,7 +34,6 @@ package main import ( "errors" "fmt" - "io" "log" "math" @@ -88,23 +87,6 @@ func (s *stream) Read(data []byte) (int, error) { return len(data), nil } -// Seek is io.Seeker's Seek. -// -// whence must be io.SeekStart or io.SeekCurrent. -func (s *stream) Seek(offset int64, whence int) (int64, error) { - const length = sampleRate / frequency - switch whence { - case io.SeekStart: - s.position = offset - case io.SeekCurrent: - s.position += offset - default: - return 0, errors.New("whence must be io.SeekStart or io.SeekCurrent") - } - s.position %= length * 4 - return s.position, nil -} - // Close is io.Closer's Close. func (s *stream) Close() error { return nil diff --git a/docs/index.html b/docs/index.html index a5d72d5c5..9b086ab8a 100644 --- a/docs/index.html +++ b/docs/index.html @@ -25,7 +25,7 @@Note: Gamepads and keyboard are not available on Android/iOS.