add demos to README.md
This commit is contained in:
@@ -18,4 +18,25 @@ With a small adjustment to the given function one can use `findContours` to find
|
||||
fun f(v: Vector2) = cos((v.distanceTo(drawer.bounds.center) / 100.0) * 2 * PI)
|
||||
val segments = findContours(::f, drawer.bounds.offsetEdges(32.0), 16.0)
|
||||
drawer.lineSegments(segments)
|
||||
```
|
||||
```
|
||||
<!-- __demos__ -->
|
||||
## Demos
|
||||
### FindContours01
|
||||
[source code](src/jvmDemo/kotlin/FindContours01.kt)
|
||||
|
||||

|
||||
|
||||
### FindContours02
|
||||
[source code](src/jvmDemo/kotlin/FindContours02.kt)
|
||||
|
||||

|
||||
|
||||
### FindContours03
|
||||
[source code](src/jvmDemo/kotlin/FindContours03.kt)
|
||||
|
||||

|
||||
|
||||
### FindContours04
|
||||
[source code](src/jvmDemo/kotlin/FindContours04.kt)
|
||||
|
||||

|
||||
|
||||
Reference in New Issue
Block a user