Planet v0.1.1 GEOF.Planet.Pattern

Functions for producing colors across the sphere model.

Link to this section Summary

Types

A basic RGB color

Maps Field indexes to RGB colors

Functions

Highlights Fields along the edges of the icosahedron

Highlights the panels of a Sphere divided by an octahedron

Highlights the panels of a Sphere divided by a tetrahedron

Link to this section Types

A basic RGB color.

Link to this type frame()
frame() :: %{optional(GEOF.Planet.Field.index()) => color()}

Maps Field indexes to RGB colors.

Link to this section Functions

Link to this function highlight_icosahedron(divisions)
highlight_icosahedron(GEOF.Planet.Sphere.divisions()) :: frame()

Highlights Fields along the edges of the icosahedron.

Link to this function octahedron(divisions)
octahedron(GEOF.Planet.Sphere.divisions()) :: frame()

Highlights the panels of a Sphere divided by an octahedron.

Link to this function tetrahedron(divisions)
tetrahedron(GEOF.Planet.Sphere.divisions()) :: frame()

Highlights the panels of a Sphere divided by a tetrahedron.