- Notifications
You must be signed in to change notification settings - Fork0
Super Random Polygon Generator
micycle1/SRPG
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
SRPG is a library that generates well-formed random polygons using a regular grid consisting of square cells.
It starts with axis & grid-aligned basic rectangular shapes, but can systematically manipulate them through repeated corner-cutting and perturbations to create a variety of polygonal and curve-like shapes, both on the grid and with offset/rotated orientations.
This library is based onMartin Held's Cimplementation.
SRPG is available as Maven/Gradle artifact viaJitpack.
SRPG accepts a variety of input arguments that affect shape geometry, providing a good level of customisation over the output. The following illustrations provide an idea of how each argument visually affects the random polygon:
Hierarchy | Diagonal | Perturb+align | Smooth |
![]() | ![]() | ![]() | ![]() |
5x5 | 10x10 | 100x100 | 500x500 |
![]() | ![]() | ![]() | ![]() |
About
Super Random Polygon Generator
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.