IdenticonSvg.PolygonReducer (IdenticonSvg v1.0.0)

Copy Markdown View Source

Module incorporating functions that find neighboring squares and use Enum.reduce/3 to group them into polygons.

Summary

Functions

col_row_neighbors(list, divisor)

(since 1.0.0)

col_row_to_index(list, divisor)

(since 1.0.0)

disjoint?(a, b)

(since 1.0.0)

group(neighbors_per_indexed_square)

(since 1.0.0)

group_into_polygons(neighbors_per_indexed_square)

(since 1.0.0)

index_neighbors(index, divisor)

(since 1.0.0)

index_to_col_row(index, divisor)

(since 1.0.0)

neighbors_per_index(indexes, divisor)

(since 1.0.0)

reducer(arg, polygons)

(since 1.0.0)

within_bounds(list, divisor)

(since 1.0.0)