Clears the viewport buffer by assigning empty tiles.
ut.Viewport.prototype.clear = function()
Returns a new copy of this tile.
ut.Tile.prototype.clone = function()
Makes this tile identical to the one supplied.
ut.Tile.prototype.copy = function( other )
Constructs a new Engine object.
ut.Engine = function( vp, func, w, h )
Returns the tile in the given coordinates.
ut.Viewport.prototype.get = function( x, y )
Returns the hexadecimal representation of the background color
ut.Tile.prototype.getBackgroundHex = function()
Returns the JSON representation of the background color, i.e.
ut.Tile.prototype.getBackgroundJSON = function()
Returns the CSS rgb(r,g,b) representation of the background color
ut.Tile.prototype.getBackgroundRGB = function()
Returns the character of this tile.
ut.Tile.prototype.getChar = function()
Returns the hexadecimal representation of the color
ut.Tile.prototype.getColorHex = function()
Returns the JSON representation of the color, i.e.
ut.Tile.prototype.getColorJSON = function()
Returns the CSS rgb(r,g,b) representation of the color
ut.Tile.prototype.getColorRGB = function()
Gets the currently used renderer.
ut.Viewport.prototype.getRendererString = function()
Initilizes input by assigning default key handlers and optional user’s handlers.
ut.initInput = function( onKeyDown, onKeyUp )
Checks if given key is pressed down.
ut.isKeyPressed = function( key )
Puts a tile to the given coordinates.
ut.Viewport.prototype.put = function( tile, x, y )
Creates a row of tiles with the chars of the given string.
ut.Viewport.prototype.putString = function( str, x, y, r, g, b, br, bg, bb )
Renders the buffer as html to the element specified at construction.
ut.Viewport.prototype.render = function()
Clears the background color of this tile.
ut.Tile.prototype.resetBackground = function()
Clears the color of this tile / assigns default color.
ut.Tile.prototype.resetColor = function()