View Source README

Squircle

An Elixir library to generate squircles in SVG format that can be used to wrap an image, or as a mask for cropping SVG files.

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.

This library is used by IdenticonSvg to convert square to squircled SVG identicons. See also discussion thread on elixirforum.com.