https://github.com/zserge/figma-simplify-path
Figma plugin to simplify vector paths
https://github.com/zserge/figma-simplify-path
Last synced: 12 months ago
JSON representation
Figma plugin to simplify vector paths
- Host: GitHub
- URL: https://github.com/zserge/figma-simplify-path
- Owner: zserge
- License: apache-2.0
- Created: 2020-02-15T15:42:27.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-24T06:03:09.000Z (about 6 years ago)
- Last Synced: 2025-04-11T05:16:16.371Z (about 1 year ago)
- Language: JavaScript
- Size: 26.4 KB
- Stars: 29
- Watchers: 2
- Forks: 4
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simplify path plugin for Figma
A small plugin that simplifies vector paths in Figma.
It can be applied to any vector nodes. The plugin iterates through all segments, renders Bezier curves using [De Casteljau's algorithm][1], then reduces the number of points in the lines using [Douglas-Peucker algorithm][2] and converts resulting points into new Bezier curves.
This results in smoother and simpler lines, which can be especially helpful when using Pencil tool.
[1]: https://en.wikipedia.org/wiki/De_Casteljau%27s_algorithm
[2]: https://en.wikipedia.org/wiki/Ramer%E2%80%93Douglas%E2%80%93Peucker_algorithm