Skia.Paint (Skia v0.1.0)

Copy Markdown View Source

Reusable paint description for future paint-focused APIs.

Summary

Types

t()

@type t() :: %Skia.Paint{
  blend_mode: atom() | nil,
  color_filter: Skia.ColorFilter.t() | nil,
  fill: term(),
  image_filter: Skia.ImageFilter.t() | nil,
  mask_filter: Skia.MaskFilter.t() | nil,
  path_effect: Skia.PathEffect.t() | nil,
  stroke: term(),
  stroke_width: float() | nil
}

Functions

new(opts \\ [])

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

to_opts(paint)

@spec to_opts(t()) :: keyword()