# README
Ebiten (海老天)
- A simple SNES-like 2D game library in Go
- Works on
- Web browsers (powered by GopherJS)
- Supported browsers: Chrome, Firefox, Safari on desktops
- Mac OS X
- Linux (maybe)
- Windows (possibly)
- Web browsers (powered by GopherJS)
- API Docs
Features
- 2D Graphics
- Input (Mouse, Keyboard)
Documentation
http://hajimehoshi.github.io/ebiten/
License
Ebiten is licensed under Apache license version 2.0. See license.txt.
# Functions
CursorPosition returns a position of a mouse cursor.
IsKeyPressed returns a boolean indicating whether key is pressed.
IsMouseButtonPressed returns a boolean indicating whether mouseButton is pressed.
Monochrome returns a color matrix to make an image monochrome.
NewImage returns an empty image.
NewImageFromImage creates a new image with the given image (img).
RotateGeo returns a matrix that rotates a geometry matrix by theta.
RotateHue returns a color matrix to rotate the hue.
Run runs the game.
ScaleColor returns a color matrix that scales a color matrix by the given color (r, g, b, a).
ScaleGeo returns a matrix that scales a geometry matrix by (x, y).
TranslateColor returns a color matrix that translates a color matrix by the given color (r, g, b, a).
TranslateGeo returns a matrix taht translates a geometry matrix by (tx, ty).
# Constants
ColorMDim is a dimension of a ColorM.
Filters.
Filters.
GeoMDim is a dimension of a GeoM.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
Keys.
MouseButtons.
MouseButtons.
MouseButtons.
# Structs
A ColorM represents a matrix to transform coloring when rendering an image.
A DrawImageOptions represents options to render an image on an image.
A GeoM represents a matrix to transform geometry when rendering an image.
Image represents an image.
Deprecated (as of 1.1.0-alpha): Use ImageParts instead.
# Interfaces
An ImageParts represents the parts of the destination image and the parts of the source image.
# Type aliases
Filter represents the type of filter to be used when an image is maginified or minified.
A Key represents a keyboard key.
A MouseButton represents a mouse button.