diff --git a/_docs/public/examples/alphablending.html b/_docs/public/examples/alphablending.html index 04400e590..3c98f2d97 100644 --- a/_docs/public/examples/alphablending.html +++ b/_docs/public/examples/alphablending.html @@ -39,11 +39,12 @@ pre {
package main
 
 import (
-    "github.com/hajimehoshi/ebiten"
-    "github.com/hajimehoshi/ebiten/ebitenutil"
     "image/color"
     _ "image/png"
     "log"
+
+    "github.com/hajimehoshi/ebiten"
+    "github.com/hajimehoshi/ebiten/ebitenutil"
 )
 
 const (
@@ -103,9 +104,6 @@ func main() {
     if err != nil {
         log.Fatal(err)
     }
-    //update := update
-    //f, _ := os.Create("out.gif")
-    //update = ebitenutil.RecordScreenAsGIF(update, f, 100)
     if err := ebiten.Run(update, screenWidth, screenHeight, 2, "Alpha Blending (Ebiten Demo)"); err != nil {
         log.Fatal(err)
     }
diff --git a/_docs/public/examples/gamepad.html b/_docs/public/examples/gamepad.html
index 50814c582..0fa4e90f8 100644
--- a/_docs/public/examples/gamepad.html
+++ b/_docs/public/examples/gamepad.html
@@ -40,11 +40,12 @@ pre {
 
 import (
     "fmt"
-    "github.com/hajimehoshi/ebiten"
-    "github.com/hajimehoshi/ebiten/ebitenutil"
     "log"
     "strconv"
     "strings"
+
+    "github.com/hajimehoshi/ebiten"
+    "github.com/hajimehoshi/ebiten/ebitenutil"
 )
 
 const (
diff --git a/_docs/public/examples/hue.html b/_docs/public/examples/hue.html
index 59396f67b..d9be3e917 100644
--- a/_docs/public/examples/hue.html
+++ b/_docs/public/examples/hue.html
@@ -39,11 +39,12 @@ pre {
 
package main
 
 import (
-    "github.com/hajimehoshi/ebiten"
-    "github.com/hajimehoshi/ebiten/ebitenutil"
     _ "image/jpeg"
     "log"
     "math"
+
+    "github.com/hajimehoshi/ebiten"
+    "github.com/hajimehoshi/ebiten/ebitenutil"
 )
 
 const (
diff --git a/_docs/public/examples/keyboard.html b/_docs/public/examples/keyboard.html
index f05a777a7..87dfd17de 100644
--- a/_docs/public/examples/keyboard.html
+++ b/_docs/public/examples/keyboard.html
@@ -39,11 +39,12 @@ pre {
 
package main
 
 import (
+    "log"
+    "strconv"
+
     "github.com/hajimehoshi/ebiten"
     "github.com/hajimehoshi/ebiten/ebitenutil"
     "github.com/hajimehoshi/ebiten/examples/keyboard/keyboard"
-    "log"
-    "strconv"
 )
 
 const (
diff --git a/_docs/public/examples/mosaic.html b/_docs/public/examples/mosaic.html
index e693ade5f..c99654970 100644
--- a/_docs/public/examples/mosaic.html
+++ b/_docs/public/examples/mosaic.html
@@ -39,10 +39,11 @@ pre {
 
package main
 
 import (
-    "github.com/hajimehoshi/ebiten"
-    "github.com/hajimehoshi/ebiten/ebitenutil"
     _ "image/jpeg"
     "log"
+
+    "github.com/hajimehoshi/ebiten"
+    "github.com/hajimehoshi/ebiten/ebitenutil"
 )
 
 const (
diff --git a/_docs/public/examples/noise.html b/_docs/public/examples/noise.html
index f73453397..994978387 100644
--- a/_docs/public/examples/noise.html
+++ b/_docs/public/examples/noise.html
@@ -40,11 +40,11 @@ pre {
 
 import (
     "fmt"
-    "github.com/hajimehoshi/ebiten"
-    "github.com/hajimehoshi/ebiten/ebitenutil"
     "image"
     "log"
-    //"math/rand"
+
+    "github.com/hajimehoshi/ebiten"
+    "github.com/hajimehoshi/ebiten/ebitenutil"
 )
 
 const (
diff --git a/_docs/public/examples/paint.html b/_docs/public/examples/paint.html
index 80045dc8f..73b0d1d2d 100644
--- a/_docs/public/examples/paint.html
+++ b/_docs/public/examples/paint.html
@@ -40,12 +40,13 @@ pre {
 
 import (
     "fmt"
-    "github.com/hajimehoshi/ebiten"
-    "github.com/hajimehoshi/ebiten/ebitenutil"
     "image"
     "image/color"
     "log"
     "math"
+
+    "github.com/hajimehoshi/ebiten"
+    "github.com/hajimehoshi/ebiten/ebitenutil"
 )
 
 const (
diff --git a/_docs/public/examples/perspective.html b/_docs/public/examples/perspective.html
index 521239270..da091d707 100644
--- a/_docs/public/examples/perspective.html
+++ b/_docs/public/examples/perspective.html
@@ -39,10 +39,11 @@ pre {
 
package main
 
 import (
-    "github.com/hajimehoshi/ebiten"
-    "github.com/hajimehoshi/ebiten/ebitenutil"
     _ "image/jpeg"
     "log"
+
+    "github.com/hajimehoshi/ebiten"
+    "github.com/hajimehoshi/ebiten/ebitenutil"
 )
 
 const (
diff --git a/_docs/public/examples/rotate.html b/_docs/public/examples/rotate.html
index bc36f16d8..582df4dd4 100644
--- a/_docs/public/examples/rotate.html
+++ b/_docs/public/examples/rotate.html
@@ -39,11 +39,12 @@ pre {
 
package main
 
 import (
-    "github.com/hajimehoshi/ebiten"
-    "github.com/hajimehoshi/ebiten/ebitenutil"
     _ "image/jpeg"
     "log"
     "math"
+
+    "github.com/hajimehoshi/ebiten"
+    "github.com/hajimehoshi/ebiten/ebitenutil"
 )
 
 const (
diff --git a/_docs/public/examples/sprites.html b/_docs/public/examples/sprites.html
index d78725785..61724d339 100644
--- a/_docs/public/examples/sprites.html
+++ b/_docs/public/examples/sprites.html
@@ -40,11 +40,12 @@ pre {
 
 import (
     "fmt"
-    "github.com/hajimehoshi/ebiten"
-    "github.com/hajimehoshi/ebiten/ebitenutil"
     _ "image/png"
     "log"
     "math/rand"
+
+    "github.com/hajimehoshi/ebiten"
+    "github.com/hajimehoshi/ebiten/ebitenutil"
 )
 
 const (
diff --git a/examples/alphablending/main.go b/examples/alphablending/main.go
index cc86119c8..9bffcfed3 100644
--- a/examples/alphablending/main.go
+++ b/examples/alphablending/main.go
@@ -15,11 +15,12 @@
 package main
 
 import (
-	"github.com/hajimehoshi/ebiten"
-	"github.com/hajimehoshi/ebiten/ebitenutil"
 	"image/color"
 	_ "image/png"
 	"log"
+
+	"github.com/hajimehoshi/ebiten"
+	"github.com/hajimehoshi/ebiten/ebitenutil"
 )
 
 const (
@@ -79,9 +80,6 @@ func main() {
 	if err != nil {
 		log.Fatal(err)
 	}
-	//update := update
-	//f, _ := os.Create("out.gif")
-	//update = ebitenutil.RecordScreenAsGIF(update, f, 100)
 	if err := ebiten.Run(update, screenWidth, screenHeight, 2, "Alpha Blending (Ebiten Demo)"); err != nil {
 		log.Fatal(err)
 	}
diff --git a/examples/blocks/blocks/font.go b/examples/blocks/blocks/font.go
index 22c89f7ea..c01cbe68e 100644
--- a/examples/blocks/blocks/font.go
+++ b/examples/blocks/blocks/font.go
@@ -15,9 +15,10 @@
 package blocks
 
 import (
+	"image/color"
+
 	"github.com/hajimehoshi/ebiten"
 	"github.com/hajimehoshi/ebiten/examples/common"
-	"image/color"
 )
 
 func drawTextWithShadowCenter(rt *ebiten.Image, str string, x, y, scale int, clr color.Color, width int) error {
diff --git a/examples/blocks/blocks/game.go b/examples/blocks/blocks/game.go
index 8ff498702..f52d172f3 100644
--- a/examples/blocks/blocks/game.go
+++ b/examples/blocks/blocks/game.go
@@ -15,8 +15,9 @@
 package blocks
 
 import (
-	"github.com/hajimehoshi/ebiten"
 	"sync"
+
+	"github.com/hajimehoshi/ebiten"
 )
 
 const ScreenWidth = 256
diff --git a/examples/blocks/blocks/gamepadscene.go b/examples/blocks/blocks/gamepadscene.go
index 6388b330b..3734e78aa 100644
--- a/examples/blocks/blocks/gamepadscene.go
+++ b/examples/blocks/blocks/gamepadscene.go
@@ -16,10 +16,11 @@ package blocks
 
 import (
 	"fmt"
-	"github.com/hajimehoshi/ebiten"
-	"github.com/hajimehoshi/ebiten/examples/common"
 	"image/color"
 	"strings"
+
+	"github.com/hajimehoshi/ebiten"
+	"github.com/hajimehoshi/ebiten/examples/common"
 )
 
 type GamepadScene struct {
diff --git a/examples/blocks/blocks/gamescene.go b/examples/blocks/blocks/gamescene.go
index df3b570c2..d2ffabf5b 100644
--- a/examples/blocks/blocks/gamescene.go
+++ b/examples/blocks/blocks/gamescene.go
@@ -15,14 +15,15 @@
 package blocks
 
 import (
-	"github.com/hajimehoshi/ebiten"
-	"github.com/hajimehoshi/ebiten/ebitenutil"
-	"github.com/hajimehoshi/ebiten/examples/common"
 	"image/color"
 	_ "image/jpeg"
 	"math/rand"
 	"strconv"
 	"time"
+
+	"github.com/hajimehoshi/ebiten"
+	"github.com/hajimehoshi/ebiten/ebitenutil"
+	"github.com/hajimehoshi/ebiten/examples/common"
 )
 
 var (
diff --git a/examples/blocks/blocks/titlescene.go b/examples/blocks/blocks/titlescene.go
index b498dcd1e..854715acc 100644
--- a/examples/blocks/blocks/titlescene.go
+++ b/examples/blocks/blocks/titlescene.go
@@ -15,10 +15,11 @@
 package blocks
 
 import (
+	"image/color"
+
 	"github.com/hajimehoshi/ebiten"
 	"github.com/hajimehoshi/ebiten/ebitenutil"
 	"github.com/hajimehoshi/ebiten/examples/common"
-	"image/color"
 )
 
 var imageBackground *ebiten.Image
diff --git a/examples/blocks/main.go b/examples/blocks/main.go
index 11718f35d..cf88456bf 100644
--- a/examples/blocks/main.go
+++ b/examples/blocks/main.go
@@ -16,11 +16,12 @@ package main
 
 import (
 	"flag"
-	"github.com/hajimehoshi/ebiten"
-	"github.com/hajimehoshi/ebiten/examples/blocks/blocks"
 	"log"
 	"os"
 	"runtime/pprof"
+
+	"github.com/hajimehoshi/ebiten"
+	"github.com/hajimehoshi/ebiten/examples/blocks/blocks"
 )
 
 var cpuProfile = flag.String("cpuprofile", "", "write cpu profile to file")
diff --git a/examples/gamepad/main.go b/examples/gamepad/main.go
index dede55f8d..e0ef60ba5 100644
--- a/examples/gamepad/main.go
+++ b/examples/gamepad/main.go
@@ -16,11 +16,12 @@ package main
 
 import (
 	"fmt"
-	"github.com/hajimehoshi/ebiten"
-	"github.com/hajimehoshi/ebiten/ebitenutil"
 	"log"
 	"strconv"
 	"strings"
+
+	"github.com/hajimehoshi/ebiten"
+	"github.com/hajimehoshi/ebiten/ebitenutil"
 )
 
 const (
diff --git a/examples/hue/main.go b/examples/hue/main.go
index d1049d6b7..c6d7e7eb8 100644
--- a/examples/hue/main.go
+++ b/examples/hue/main.go
@@ -15,11 +15,12 @@
 package main
 
 import (
-	"github.com/hajimehoshi/ebiten"
-	"github.com/hajimehoshi/ebiten/ebitenutil"
 	_ "image/jpeg"
 	"log"
 	"math"
+
+	"github.com/hajimehoshi/ebiten"
+	"github.com/hajimehoshi/ebiten/ebitenutil"
 )
 
 const (
diff --git a/examples/keyboard/main.go b/examples/keyboard/main.go
index d15b6555c..f27b21d22 100644
--- a/examples/keyboard/main.go
+++ b/examples/keyboard/main.go
@@ -15,11 +15,12 @@
 package main
 
 import (
+	"log"
+	"strconv"
+
 	"github.com/hajimehoshi/ebiten"
 	"github.com/hajimehoshi/ebiten/ebitenutil"
 	"github.com/hajimehoshi/ebiten/examples/keyboard/keyboard"
-	"log"
-	"strconv"
 )
 
 const (
diff --git a/examples/mosaic/main.go b/examples/mosaic/main.go
index 2f1c6c650..1b181c0d7 100644
--- a/examples/mosaic/main.go
+++ b/examples/mosaic/main.go
@@ -15,10 +15,11 @@
 package main
 
 import (
-	"github.com/hajimehoshi/ebiten"
-	"github.com/hajimehoshi/ebiten/ebitenutil"
 	_ "image/jpeg"
 	"log"
+
+	"github.com/hajimehoshi/ebiten"
+	"github.com/hajimehoshi/ebiten/ebitenutil"
 )
 
 const (
diff --git a/examples/noise/main.go b/examples/noise/main.go
index d9327e80c..2b1a5ab27 100644
--- a/examples/noise/main.go
+++ b/examples/noise/main.go
@@ -16,11 +16,11 @@ package main
 
 import (
 	"fmt"
-	"github.com/hajimehoshi/ebiten"
-	"github.com/hajimehoshi/ebiten/ebitenutil"
 	"image"
 	"log"
-	//"math/rand"
+
+	"github.com/hajimehoshi/ebiten"
+	"github.com/hajimehoshi/ebiten/ebitenutil"
 )
 
 const (
diff --git a/examples/paint/main.go b/examples/paint/main.go
index aa373d38a..3b3a72c50 100644
--- a/examples/paint/main.go
+++ b/examples/paint/main.go
@@ -16,12 +16,13 @@ package main
 
 import (
 	"fmt"
-	"github.com/hajimehoshi/ebiten"
-	"github.com/hajimehoshi/ebiten/ebitenutil"
 	"image"
 	"image/color"
 	"log"
 	"math"
+
+	"github.com/hajimehoshi/ebiten"
+	"github.com/hajimehoshi/ebiten/ebitenutil"
 )
 
 const (
diff --git a/examples/perspective/main.go b/examples/perspective/main.go
index b22925455..03d17f2fe 100644
--- a/examples/perspective/main.go
+++ b/examples/perspective/main.go
@@ -15,10 +15,11 @@
 package main
 
 import (
-	"github.com/hajimehoshi/ebiten"
-	"github.com/hajimehoshi/ebiten/ebitenutil"
 	_ "image/jpeg"
 	"log"
+
+	"github.com/hajimehoshi/ebiten"
+	"github.com/hajimehoshi/ebiten/ebitenutil"
 )
 
 const (
diff --git a/examples/rotate/main.go b/examples/rotate/main.go
index 50e5d546d..f36514697 100644
--- a/examples/rotate/main.go
+++ b/examples/rotate/main.go
@@ -15,11 +15,12 @@
 package main
 
 import (
-	"github.com/hajimehoshi/ebiten"
-	"github.com/hajimehoshi/ebiten/ebitenutil"
 	_ "image/jpeg"
 	"log"
 	"math"
+
+	"github.com/hajimehoshi/ebiten"
+	"github.com/hajimehoshi/ebiten/ebitenutil"
 )
 
 const (
diff --git a/examples/sprites/main.go b/examples/sprites/main.go
index cbed71005..fb2c2c6a2 100644
--- a/examples/sprites/main.go
+++ b/examples/sprites/main.go
@@ -16,11 +16,12 @@ package main
 
 import (
 	"fmt"
-	"github.com/hajimehoshi/ebiten"
-	"github.com/hajimehoshi/ebiten/ebitenutil"
 	_ "image/png"
 	"log"
 	"math/rand"
+
+	"github.com/hajimehoshi/ebiten"
+	"github.com/hajimehoshi/ebiten/ebitenutil"
 )
 
 const (
diff --git a/examples/windowsize/main.go b/examples/windowsize/main.go
index 0c619d02d..9bc4b3811 100644
--- a/examples/windowsize/main.go
+++ b/examples/windowsize/main.go
@@ -16,11 +16,12 @@ package main
 
 import (
 	"fmt"
-	"github.com/hajimehoshi/ebiten"
-	"github.com/hajimehoshi/ebiten/ebitenutil"
 	"image/color"
 	_ "image/jpeg"
 	"log"
+
+	"github.com/hajimehoshi/ebiten"
+	"github.com/hajimehoshi/ebiten/ebitenutil"
 )
 
 const (