diff --git a/_docs/index_tmpl.html b/_docs/index_tmpl.html index 7c0a401bd..988cf08ad 100644 --- a/_docs/index_tmpl.html +++ b/_docs/index_tmpl.html @@ -1,5 +1,20 @@ {{comment .License}} +

Ebiten (海老天) v1.0.0-alpha

Example

- +
{{range .Examples}} - + {{end}} diff --git a/_docs/public/index.html b/_docs/public/index.html index 7e0581252..94ff3770b 100644 --- a/_docs/public/index.html +++ b/_docs/public/index.html @@ -12,6 +12,21 @@ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.--> +

Ebiten (海老天) v1.0.0-alpha

Example

-
{{.Source}}
// {{.Name}}
+
+{{.Source}}
+
- - - -
package main
+    
// hue
+
+package main
 
 import (
 	"github.com/hajimehoshi/ebiten"
@@ -59,10 +76,10 @@ var (
 func update(screen *ebiten.Image) error {
 	count++
 	w, h := gophersImage.Size()
-	geo := ebiten.TranslateGeo(float64(screenWidth - w)/2, float64(screenHeight - h) / 2)
+	geo := ebiten.TranslateGeo(float64(screenWidth-w)/2, float64(screenHeight-h)/2)
 	clr := ebiten.RotateHue(float64(count%360) * 2 * math.Pi / 360)
 	if err := screen.DrawImage(gophersImage, &ebiten.DrawImageOptions{
-		GeoM: geo,
+		GeoM:   geo,
 		ColorM: clr,
 	}); err != nil {
 		return err
@@ -85,7 +102,9 @@ func main() {
   
package main
+    
// mosaic
+
+package main
 
 import (
 	"github.com/hajimehoshi/ebiten"
@@ -136,7 +155,9 @@ func main() {
   
package main
+    
// perspective
+
+package main
 
 import (
 	"github.com/hajimehoshi/ebiten"
@@ -191,7 +212,9 @@ func main() {
   
package main
+    
// rotate
+
+package main
 
 import (
 	"github.com/hajimehoshi/ebiten"