Packages

Write native GUI directly from Elixir using declarative API.

Current section

Files

Jump to
emerge lib emerge ui svg.ex
Raw

lib/emerge/ui/svg.ex

defmodule Emerge.UI.Svg do
@moduledoc "SVG-specific styling attributes"
@type t :: {:svg_color, Emerge.UI.Color.color() | Emerge.UI.Color.t()}
@doc "Apply template tinting to all visible SVG pixels"
@spec color(Emerge.UI.Color.color() | Emerge.UI.Color.t()) :: t()
def color(c), do: {:svg_color, c}
end