https://github.com/waseigo/squircle
https://github.com/waseigo/squircle
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/waseigo/squircle
- Owner: waseigo
- License: apache-2.0
- Created: 2024-06-28T20:29:15.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-14T20:56:54.000Z (8 months ago)
- Last Synced: 2025-05-08T03:56:53.144Z (5 months ago)
- Language: Elixir
- Size: 26.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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?
[](https://ko-fi.com/V7V119L07A)