Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/c5inco/smoother
- Owner: c5inco
- Created: 2023-06-26T23:53:37.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-27T15:26:36.000Z (8 months ago)
- Last Synced: 2024-04-14T15:21:21.350Z (7 months ago)
- Topics: android, figma, jetpack-compose
- Language: Kotlin
- Homepage:
- Size: 297 KB
- Stars: 29
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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