Emerge.UI.Svg (Emerge v0.5.1)

Copy Markdown View Source

SVG-specific styling attributes

Summary

Functions

Apply a solid or gradient template tint to visible SVG pixels.

Types

t()

@type t() :: {:svg_color, Emerge.UI.Color.color() | Emerge.UI.Color.t()}

Functions

color(c)

@spec color(Emerge.UI.Color.color() | Emerge.UI.Color.t()) :: t()

Apply a solid or gradient template tint to visible SVG pixels.

Original RGB is replaced; source alpha is multiplied by tint alpha. Gradients span the SVG element's content box, not the cached source raster or each tile.