geo_pattern v0.0.1 GeoPattern.Patterns
Contains functions for listing the available pattern atoms and modules.
Summary
Functions
Given a valid pattern atom, returns the corresponding pattern module
Returns a tuple of available pattern atoms
Returns a list of available pattern modules
Functions
Given a valid pattern atom, returns the corresponding pattern module.
Parameters
atom
(Atom) example::concentric_circles
.
Example
iex> GeoPattern.Patterns.pattern_atom_to_module(:sine_waves)
GeoPattern.Patterns.SineWaves
Returns a tuple of available pattern atoms.
Example
iex> GeoPattern.Patterns.pattern_atoms
{
:chevrons,
:concentric_circles,
:diamonds,
:hexagons,
:mosaic_squares,
:nested_squares,
:octagons,
:overlapping_circles,
:overlapping_rings,
:plaid,
:plus_signs,
:sine_waves,
:squares,
:tessellation,
:triangles,
:xes
}