A simple and flexible HTML5 and JavaScript powered game engine.
View Project on GitHub Download Pixel.js (v0.9b)
Draw text on the layer.
| Name | Description |
|---|---|
| text | The text to draw to the layer. |
| x | The x coordinate where to place the text on the layer. |
| y | The y coordinate where to place the text on the layer. |
| font | The font name to use when drawing the text. |
| fillStyle | The fill style of the text, e.g. a hex colour code. |
| textAlign | A string indicating the alignment to use (left, center or right). |
Google Chrome, Mozilla FireFox, Internet Explorer 9+, Opera, Safari.