An Elixir library for generating parametrizable squircle paths in SVG. The library also offers the image/5 function, which generates SVG code that wraps the image located at the href URL within a parameterized squircle.

The primary reason for the existence of this library is to be used by IdenticonSvg to convert square to squircled SVG identicons. See also the discussion thread on elixirforum.com .

Installation

The package is available in Hex and can be installed by adding squircle to your list of dependencies in mix.exs:

def deps do
  [
    {:squircle, "~> 0.1.0"}
  ]
end

Configuration

No configuration required.

Documentation

The docs can be found at https://hexdocs.pm/squircle .

blog-post
Squircle 2024
/images/software/stack/Elixir.png Elixir

Related