Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/c5inco/smoother

Simple Jetpack Compose implementation of round rects with smoother corners that match Figma corner smoothing
https://github.com/c5inco/smoother

android figma jetpack-compose

Last synced: 14 days ago
JSON representation

Simple Jetpack Compose implementation of round rects with smoother corners that match Figma corner smoothing

Awesome Lists containing this project

README

        

## ⛔️ OBSOLETE

This repo is no longer maintained. Please use the [new AndroidX Shapes library](https://developer.android.com/jetpack/androidx/releases/graphics#graphics_shapes_version_10_2) that supports setting corner smoothing similar to Figma. Here is a [Medium post](https://medium.com/androiddevelopers/the-shape-of-things-to-come-1c7663d9dbc0) that has more details on the new library. Note, this library also is KMP ready!

# Smoother
Simple Jetpack Compose implementation of round rects with smoother corners that match Figma corner smoothing.

Demo

![image](artwork/screenshot2.png)

Debug UI

![image](artwork/screenshot1.png)

All the maths ported over from JavaScript from this handy approximation: https://github.com/MartinRGB/Figma_Squircles_Approximation