Giggly.Geom.Polygon (giggly v0.2.0)

Copy Markdown View Source

Polygons: each group a shape through its rows in order, at each row's x and y, filled with its first row's fill at its alpha and bordered in its color, linewidth and linetype; a group's subgroups are rings of one shape, holes among them, filled by rule:.

Its options are rule: (:evenodd or :winding), lineend:, linejoin: and linemitre:. Build one with Giggly.Geom.new(Giggly.Geom.Polygon, options), so each option left out takes its default. A geom drawing by delegation sets its rows up through it and draws them through it (Giggly.Geom).

Summary

Functions

Polygons from options validated against options/0.

The options polygons are built from, as a NimbleOptions schema: their fill rule, line ends, corners and mitre limit.

Types

t()

@opaque t()

Functions

new(options)

@spec new(keyword()) :: t()

Polygons from options validated against options/0.

options()

@spec options() :: keyword()

The options polygons are built from, as a NimbleOptions schema: their fill rule, line ends, corners and mitre limit.