View Source Islands.Island.Offsets (Islands Island v0.1.31)

Returns a list of offset tuples for each island type.

Summary

Types

Column offset

Row offset

t()

A list of offset tuples

Functions

Returns a list of offset tuples for the given island_type.

Types

@type col_offset() :: 0..2

Column offset

@type row_offset() :: 0..2

Row offset

@type t() :: [{row_offset(), col_offset()}]

A list of offset tuples

Functions

@spec new(Islands.Island.type()) :: t() | {:error, atom()}

Returns a list of offset tuples for the given island_type.