Swift package for recreating images as geometric primitives. It began as a Swift port of the geometrize-lib C++ library, but it has since evolved in a distinct direction. You can give it a try in web version.
Look geometrize-cli
target how package could be used to geometrize images.
The matrix below shows typical results for a combination of circles, triangles, rotated rectangles, rotated ellipses and all supported shapes at 50, 200 and 500 total shapes:
50 Shapes | 200 Shapes | 500 Shapes | |
---|---|---|---|
Circles | |||
Triangles | |||
Rotated Rectangles | |||
Rotated Ellipses | |||
All Shapes |
You could try swift-geometrize in action in Telegram bot Geometrizebot which is also written in Swift and open-sourced.
- ✅ add stroke width for line, polyline and bezier curve;
- ✅ multithreading;
- add polygon as shape type;
- filling shapes with gradient;
- solve dealing with randomness in tests;
- geometrize with predefined or user supplied brush strokes;
- geometrize with characters (on output will be something which could be called ascii art or art produced by James Cook Type Writer Artist);
- photo mosaic,
- string art.
Licensed under MIT license.