View Source Islands.Tally.Tile (Islands Tally v0.1.24)

Creates a tile from a cell value.

Link to this section Summary

Functions

Creates a tile (with embedded ANSI escapes) from cell_value.

Link to this section Functions

@spec new(atom()) :: IO.chardata()

Creates a tile (with embedded ANSI escapes) from cell_value.

examples

Examples

iex> alias Islands.Tally.Tile
iex> Tile.new(:atoll) # => A sandy brown tile
[[[[[] | ""] | ""], "<a>"] | ""]

iex> alias Islands.Tally.Tile
iex> Tile.new(:atoll_hit) # => An islamic green tile
[[[[[] | ""] | ""], ">a<"] | ""]