Skia.Vertices (Skia v0.1.0)

Copy Markdown View Source

Triangle mesh vertices.

Summary

Types

point()

@type point() :: {number(), number()}

t()

@type t() :: %Skia.Vertices{
  colors: [term()],
  indices: [non_neg_integer()] | nil,
  mode: atom(),
  positions: [point()]
}

Functions

new(positions, opts \\ [])

@spec new(
  [point()],
  keyword()
) :: t()