add demos to README.md
This commit is contained in:
@@ -172,13 +172,35 @@ The core elements to study to in this demo are `adjustContourSequence` and `laun
|
||||
|
||||
[source code](src/jvmDemo/kotlin/adjust/DemoAdjustContourContinue01.kt)
|
||||
|
||||
### alphashape/DemoAlphaShape
|
||||
### alphashape/DemoAlphaShape01
|
||||
|
||||
Demonstrates the use of [AlphaShape] to create a [org.openrndr.shape.ShapeContour] out
|
||||
of a collection of random [Vector2] points. Unlike the convex hull, an Alpha shape can be concave.
|
||||
|
||||
More details in [WikiPedia](https://en.wikipedia.org/wiki/Alpha_shape)
|
||||
|
||||

|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/alphashape/DemoAlphaShape.kt)
|
||||
[source code](src/jvmDemo/kotlin/alphashape/DemoAlphaShape01.kt)
|
||||
|
||||
### alphashape/DemoAlphaShape02
|
||||
|
||||
Demonstrates the use of [AlphaShape] to create ten
|
||||
[org.openrndr.shape.ShapeContour] instances out of a collection of random [Vector2] points.
|
||||
|
||||
The same points are used for each contour, but an increased alpha parameter
|
||||
is passed to the AlphaShape algorithm. Higher values return more convex shapes
|
||||
= shapes with a larger surface.
|
||||
|
||||
The list of shapes is reversed to draw the smaller contours on top, otherwise only
|
||||
the last one would be visible.
|
||||
|
||||
An instance of [Random] with a fixed seed is used to ensure the resulting
|
||||
random shape is always the same.
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/alphashape/DemoAlphaShape02.kt)
|
||||
|
||||
### arrangement/DemoArrangement01
|
||||
|
||||
@@ -384,6 +406,14 @@ Demonstration of non-uniform contour blending
|
||||
|
||||
[source code](src/jvmDemo/kotlin/operators/DemoRoundCorners01.kt)
|
||||
|
||||
### operators/DemoRoundCorners02
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/operators/DemoRoundCorners02.kt)
|
||||
|
||||
### ordering/DemoHilbertOrder01
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user