add demos to README.md
This commit is contained in:
@@ -7,6 +7,7 @@ Collection of 2D shape generators and modifiers.
|
||||
### adjust/DemoAdjustContour01
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/adjust/DemoAdjustContour01.kt)
|
||||
@@ -14,6 +15,7 @@ Collection of 2D shape generators and modifiers.
|
||||
### adjust/DemoAdjustContour02
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/adjust/DemoAdjustContour02.kt)
|
||||
@@ -21,6 +23,7 @@ Collection of 2D shape generators and modifiers.
|
||||
### adjust/DemoAdjustContour03
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/adjust/DemoAdjustContour03.kt)
|
||||
@@ -28,6 +31,7 @@ Collection of 2D shape generators and modifiers.
|
||||
### adjust/DemoAdjustContour04
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/adjust/DemoAdjustContour04.kt)
|
||||
@@ -35,6 +39,7 @@ Collection of 2D shape generators and modifiers.
|
||||
### adjust/DemoAdjustContour05
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/adjust/DemoAdjustContour05.kt)
|
||||
@@ -42,6 +47,7 @@ Collection of 2D shape generators and modifiers.
|
||||
### adjust/DemoAdjustContour06
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/adjust/DemoAdjustContour06.kt)
|
||||
@@ -49,6 +55,7 @@ Collection of 2D shape generators and modifiers.
|
||||
### adjust/DemoAdjustContour07
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/adjust/DemoAdjustContour07.kt)
|
||||
@@ -56,6 +63,7 @@ Collection of 2D shape generators and modifiers.
|
||||
### adjust/DemoAdjustContour08
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/adjust/DemoAdjustContour08.kt)
|
||||
@@ -63,6 +71,7 @@ Collection of 2D shape generators and modifiers.
|
||||
### adjust/DemoAdjustContour09
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/adjust/DemoAdjustContour09.kt)
|
||||
@@ -70,6 +79,7 @@ Collection of 2D shape generators and modifiers.
|
||||
### adjust/DemoAdjustContourContinue01
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/adjust/DemoAdjustContourContinue01.kt)
|
||||
@@ -77,6 +87,7 @@ Collection of 2D shape generators and modifiers.
|
||||
### alphashape/DemoAlphaShape
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/alphashape/DemoAlphaShape.kt)
|
||||
@@ -84,6 +95,7 @@ Collection of 2D shape generators and modifiers.
|
||||
### arrangement/DemoArrangement01
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/arrangement/DemoArrangement01.kt)
|
||||
@@ -91,6 +103,7 @@ Collection of 2D shape generators and modifiers.
|
||||
### arrangement/DemoArrangement02
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/arrangement/DemoArrangement02.kt)
|
||||
@@ -98,6 +111,7 @@ Collection of 2D shape generators and modifiers.
|
||||
### arrangement/DemoArrangement04
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/arrangement/DemoArrangement04.kt)
|
||||
@@ -111,6 +125,7 @@ Shows how to
|
||||
|
||||
The created contours are horizontal and vertical in "bezier-patch space" but
|
||||
are rendered deformed following the shape of the bezier patch.
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/bezierpatch/DemoBezierPatch01.kt)
|
||||
@@ -124,6 +139,7 @@ Calling [Circle.contour] is one way of producing
|
||||
such a contour with vertices at the cardinal points
|
||||
but one can manually create any other 4-segment closed contour
|
||||
to use in bezier patches.
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/bezierpatch/DemoBezierPatch02.kt)
|
||||
@@ -134,6 +150,7 @@ Shows how to distort [ShapeContour]s using a [bezierPatch]
|
||||
|
||||
In this case the contours are regular stars and the bezier patch
|
||||
is created using a circular contour with the required 4 segments.
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/bezierpatch/DemoBezierPatch03.kt)
|
||||
@@ -145,6 +162,7 @@ from a [bezierPatch]
|
||||
|
||||
You can think of bezierPatch.position() as requesting points
|
||||
in a wavy flag (the bezier patch) using normalized uv coordinates.
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/bezierpatch/DemoBezierPatch04.kt)
|
||||
@@ -160,6 +178,7 @@ Shows how to
|
||||
|
||||
The created contours are horizontal and vertical in "bezier-patch space" but
|
||||
are rendered deformed following the shape of the bezier patch.
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/bezierpatch/DemoBezierPatch05.kt)
|
||||
@@ -170,6 +189,7 @@ Shows how to
|
||||
- create a [bezierPatch] out of 4 curved Segment2D instances
|
||||
- apply an image texture to the patch using a shadeStyle
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/bezierpatch/DemoBezierPatch06.kt)
|
||||
@@ -177,6 +197,7 @@ Shows how to
|
||||
### bezierpatch/DemoBezierPatchDrawer01
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/bezierpatch/DemoBezierPatchDrawer01.kt)
|
||||
@@ -184,6 +205,7 @@ Shows how to
|
||||
### bezierpatch/DemoBezierPatchDrawer02
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/bezierpatch/DemoBezierPatchDrawer02.kt)
|
||||
@@ -191,6 +213,7 @@ Shows how to
|
||||
### bezierpatch/DemoBezierPatchDrawer03
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/bezierpatch/DemoBezierPatchDrawer03.kt)
|
||||
@@ -204,6 +227,7 @@ Calling [Circle.contour] is one way of producing
|
||||
such a contour with vertices at the cardinal points
|
||||
but one can manually create any other 4-segment closed contour
|
||||
to use in bezier patches.
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/bezierpatch/DemoBezierPatches01.kt)
|
||||
@@ -211,6 +235,7 @@ to use in bezier patches.
|
||||
### blend/DemoContourBlend01
|
||||
|
||||
Demonstration of uniform contour blending
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/blend/DemoContourBlend01.kt)
|
||||
@@ -218,6 +243,7 @@ Demonstration of uniform contour blending
|
||||
### blend/DemoContourBlend02
|
||||
|
||||
Demonstration of non-uniform contour blending
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/blend/DemoContourBlend02.kt)
|
||||
@@ -225,6 +251,7 @@ Demonstration of non-uniform contour blending
|
||||
### frames/DemoFrames01
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/frames/DemoFrames01.kt)
|
||||
@@ -232,6 +259,7 @@ Demonstration of non-uniform contour blending
|
||||
### hobbycurve/DemoHobbyCurve01
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/hobbycurve/DemoHobbyCurve01.kt)
|
||||
@@ -239,6 +267,7 @@ Demonstration of non-uniform contour blending
|
||||
### hobbycurve/DemoHobbyCurve02
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/hobbycurve/DemoHobbyCurve02.kt)
|
||||
@@ -246,6 +275,7 @@ Demonstration of non-uniform contour blending
|
||||
### hobbycurve/DemoHobbyCurve03
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/hobbycurve/DemoHobbyCurve03.kt)
|
||||
@@ -253,6 +283,7 @@ Demonstration of non-uniform contour blending
|
||||
### hobbycurve/DemoHobbyCurve3D01
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/hobbycurve/DemoHobbyCurve3D01.kt)
|
||||
@@ -260,6 +291,7 @@ Demonstration of non-uniform contour blending
|
||||
### operators/DemoRoundCorners01
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/operators/DemoRoundCorners01.kt)
|
||||
@@ -267,6 +299,7 @@ Demonstration of non-uniform contour blending
|
||||
### ordering/DemoHilbertOrder01
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/ordering/DemoHilbertOrder01.kt)
|
||||
@@ -274,6 +307,7 @@ Demonstration of non-uniform contour blending
|
||||
### ordering/DemoHilbertOrder02
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/ordering/DemoHilbertOrder02.kt)
|
||||
@@ -281,6 +315,7 @@ Demonstration of non-uniform contour blending
|
||||
### path3d/DemoPath3DProjection
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/path3d/DemoPath3DProjection.kt)
|
||||
@@ -288,6 +323,7 @@ Demonstration of non-uniform contour blending
|
||||
### primitives/DemoArc01
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/primitives/DemoArc01.kt)
|
||||
@@ -295,6 +331,7 @@ Demonstration of non-uniform contour blending
|
||||
### primitives/DemoCircleInversion01
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/primitives/DemoCircleInversion01.kt)
|
||||
@@ -302,6 +339,7 @@ Demonstration of non-uniform contour blending
|
||||
### primitives/DemoCircleInversion02
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/primitives/DemoCircleInversion02.kt)
|
||||
@@ -309,6 +347,7 @@ Demonstration of non-uniform contour blending
|
||||
### primitives/DemoCircleInversion03
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/primitives/DemoCircleInversion03.kt)
|
||||
@@ -316,6 +355,7 @@ Demonstration of non-uniform contour blending
|
||||
### primitives/DemoNet01
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/primitives/DemoNet01.kt)
|
||||
@@ -323,6 +363,7 @@ Demonstration of non-uniform contour blending
|
||||
### primitives/DemoPulley01
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/primitives/DemoPulley01.kt)
|
||||
@@ -339,6 +380,7 @@ within the bounding rectangle of the canvas.
|
||||
4. Aligns the rectangles vertically according to their position in relation to the bounding rectangle
|
||||
and a dynamic anchor point derived from the cosine of elapsed time.
|
||||
5. Renders the rectangles on the canvas in the output window.
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/primitives/DemoRectangleDistribute01.kt)
|
||||
@@ -346,6 +388,7 @@ and a dynamic anchor point derived from the cosine of elapsed time.
|
||||
### primitives/DemoRectangleFitHorizontally
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/primitives/DemoRectangleFitHorizontally.kt)
|
||||
@@ -353,6 +396,7 @@ and a dynamic anchor point derived from the cosine of elapsed time.
|
||||
### primitives/DemoRectangleGrid01
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/primitives/DemoRectangleGrid01.kt)
|
||||
@@ -360,6 +404,7 @@ and a dynamic anchor point derived from the cosine of elapsed time.
|
||||
### primitives/DemoRectangleGrid02
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/primitives/DemoRectangleGrid02.kt)
|
||||
@@ -367,6 +412,7 @@ and a dynamic anchor point derived from the cosine of elapsed time.
|
||||
### primitives/DemoRectangleGrid03
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/primitives/DemoRectangleGrid03.kt)
|
||||
@@ -375,6 +421,7 @@ and a dynamic anchor point derived from the cosine of elapsed time.
|
||||
|
||||
Demonstrate rectangle-rectangle intersection
|
||||
@see <img src="https://raw.githubusercontent.com/openrndr/orx/media/orx-shapes/images/primitives-DemoRectangleIntersection01Kt.png">
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/primitives/DemoRectangleIntersection01.kt)
|
||||
@@ -382,6 +429,7 @@ Demonstrate rectangle-rectangle intersection
|
||||
### primitives/DemoRectangleIrregularGrid
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/primitives/DemoRectangleIrregularGrid.kt)
|
||||
@@ -396,6 +444,7 @@ The rectangles are drawn using the default white color. The `place` function is
|
||||
rectangle to position them dynamically based on their relative anchor points within the bounding area.
|
||||
|
||||
This serves as a demonstration of positioning and rendering shapes in a structured grid layout.
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/primitives/DemoRectanglePlace01.kt)
|
||||
@@ -403,6 +452,7 @@ This serves as a demonstration of positioning and rendering shapes in a structur
|
||||
### primitives/DemoRegularPolygon
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/primitives/DemoRegularPolygon.kt)
|
||||
@@ -410,6 +460,7 @@ This serves as a demonstration of positioning and rendering shapes in a structur
|
||||
### primitives/DemoRegularStar01
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/primitives/DemoRegularStar01.kt)
|
||||
@@ -417,6 +468,7 @@ This serves as a demonstration of positioning and rendering shapes in a structur
|
||||
### primitives/DemoRegularStar02
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/primitives/DemoRegularStar02.kt)
|
||||
@@ -424,6 +476,7 @@ This serves as a demonstration of positioning and rendering shapes in a structur
|
||||
### primitives/DemoRoundedRectangle
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/primitives/DemoRoundedRectangle.kt)
|
||||
@@ -431,6 +484,7 @@ This serves as a demonstration of positioning and rendering shapes in a structur
|
||||
### primitives/DemoSplit01
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/primitives/DemoSplit01.kt)
|
||||
@@ -438,6 +492,7 @@ This serves as a demonstration of positioning and rendering shapes in a structur
|
||||
### primitives/DemoTear01
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/primitives/DemoTear01.kt)
|
||||
@@ -445,6 +500,7 @@ This serves as a demonstration of positioning and rendering shapes in a structur
|
||||
### rectify/DemoRectifiedContour01
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/rectify/DemoRectifiedContour01.kt)
|
||||
@@ -452,6 +508,7 @@ This serves as a demonstration of positioning and rendering shapes in a structur
|
||||
### rectify/DemoRectifiedContour02
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/rectify/DemoRectifiedContour02.kt)
|
||||
@@ -459,6 +516,7 @@ This serves as a demonstration of positioning and rendering shapes in a structur
|
||||
### rectify/DemoRectifiedContour03
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/rectify/DemoRectifiedContour03.kt)
|
||||
@@ -466,6 +524,7 @@ This serves as a demonstration of positioning and rendering shapes in a structur
|
||||
### rectify/DemoRectifiedContour04
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/rectify/DemoRectifiedContour04.kt)
|
||||
@@ -473,6 +532,7 @@ This serves as a demonstration of positioning and rendering shapes in a structur
|
||||
### rectify/DemoRectifiedPath3D01
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/rectify/DemoRectifiedPath3D01.kt)
|
||||
@@ -480,6 +540,7 @@ This serves as a demonstration of positioning and rendering shapes in a structur
|
||||
### text/DemoText01
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/text/DemoText01.kt)
|
||||
@@ -487,6 +548,7 @@ This serves as a demonstration of positioning and rendering shapes in a structur
|
||||
### tunni/DemoTunniAdjuster01
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/tunni/DemoTunniAdjuster01.kt)
|
||||
@@ -494,6 +556,7 @@ This serves as a demonstration of positioning and rendering shapes in a structur
|
||||
### tunni/DemoTunniPoint01
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/tunni/DemoTunniPoint01.kt)
|
||||
|
||||
Reference in New Issue
Block a user