Skia.Command (Skia v0.1.1)

Copy Markdown View Source

Normalized drawing command.

Commands are intentionally small, explicit data structures. They are easy to inspect in tests and can later be encoded into a compact binary protocol for a Rustler NIF.

Summary

Types

color()

@type color() ::
  {:rgba, non_neg_integer(), non_neg_integer(), non_neg_integer(),
   non_neg_integer()}

t()

@type t() :: %Skia.Command{args: [term()], op: atom(), opts: keyword()}

Functions

build!(name, args, opts)

@spec build!(atom(), [term()], keyword()) :: t()