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

Returns a list of offset tuples for each island type.

Link to this section Summary

Types

Column offset

Row offset

t()

A list of offset tuples

Functions

Returns a list of offset tuples for the given island_type.

Link to this section 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

Link to this section Functions

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

Returns a list of offset tuples for the given island_type.