An open API service indexing awesome lists of open source software.

https://github.com/waseigo/squircle


https://github.com/waseigo/squircle

Last synced: 5 months ago
JSON representation

Awesome Lists containing this project

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.

[Demo](https://obidenticon.overbring.com/)

## Installation

The package is [available in Hex](https://hex.pm/packages/squircle) and can be installed
by adding `squircle` to your list of dependencies in `mix.exs`:

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

## Configuration

No configuration required.

## Documentation

The docs can be found at .

This library is used by [IdenticonSvg](https://hexdocs.pm/identicon_svg) to convert square to squircled SVG identicons. See also [discussion thread on elixirforum.com](https://elixirforum.com/t/identiconsvg-generates-identicons-in-svg-format-so-they-can-be-inlined-in-html/54557/1).

## Donate

Has this library been useful for your project?

[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/V7V119L07A)