add demos to README.md

This commit is contained in:
OPENRNDR Actions
2022-06-30 16:00:45 +00:00
parent 48781ca314
commit bb66d4cd29
8 changed files with 295 additions and 8 deletions

View File

@@ -49,3 +49,77 @@ for (c in cs blend (width / 40)) {
Two color spaces are added: `ColorHSLUVa` and `ColorHPLUVa`, they are an implementation of the colorspaces presented at [hsluv.org](http://www.hsluv.org)
<!-- __demos__ -->
## Demos
### DemoColorPlane01
[source code](src/demo/kotlin/DemoColorPlane01.kt)
![DemoColorPlane01Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-color/images/DemoColorPlane01Kt.png)
### DemoColorPlane02
[source code](src/demo/kotlin/DemoColorPlane02.kt)
![DemoColorPlane02Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-color/images/DemoColorPlane02Kt.png)
### DemoColorRange01
[source code](src/demo/kotlin/DemoColorRange01.kt)
![DemoColorRange01Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-color/images/DemoColorRange01Kt.png)
### DemoColorRange02
[source code](src/demo/kotlin/DemoColorRange02.kt)
![DemoColorRange02Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-color/images/DemoColorRange02Kt.png)
### DemoColorRange03
[source code](src/demo/kotlin/DemoColorRange03.kt)
![DemoColorRange03Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-color/images/DemoColorRange03Kt.png)
### DemoColorRange04
[source code](src/demo/kotlin/DemoColorRange04.kt)
![DemoColorRange04Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-color/images/DemoColorRange04Kt.png)
### DemoFettePalette01
[source code](src/demo/kotlin/DemoFettePalette01.kt)
![DemoFettePalette01Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-color/images/DemoFettePalette01Kt.png)
### DemoFettePalette02
[source code](src/demo/kotlin/DemoFettePalette02.kt)
![DemoFettePalette02Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-color/images/DemoFettePalette02Kt.png)
### DemoHSLUV01
[source code](src/demo/kotlin/DemoHSLUV01.kt)
![DemoHSLUV01Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-color/images/DemoHSLUV01Kt.png)
### DemoHSLUV02
[source code](src/demo/kotlin/DemoHSLUV02.kt)
![DemoHSLUV02Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-color/images/DemoHSLUV02Kt.png)
### DemoHistogram01
[source code](src/demo/kotlin/DemoHistogram01.kt)
![DemoHistogram01Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-color/images/DemoHistogram01Kt.png)
### DemoHistogram02
[source code](src/demo/kotlin/DemoHistogram02.kt)
![DemoHistogram02Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-color/images/DemoHistogram02Kt.png)
### DemoHistogram03
[source code](src/demo/kotlin/DemoHistogram03.kt)
![DemoHistogram03Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-color/images/DemoHistogram03Kt.png)
### DemoOKHSV01
[source code](src/demo/kotlin/DemoOKHSV01.kt)
![DemoOKHSV01Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-color/images/DemoOKHSV01Kt.png)
### DemoXSLUV01
[source code](src/demo/kotlin/DemoXSLUV01.kt)
![DemoXSLUV01Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-color/images/DemoXSLUV01Kt.png)

View File

@@ -54,3 +54,17 @@ fun main() {
```
<!-- __demos__ -->
## Demos
### DemoCompositor01
[source code](src/demo/kotlin/DemoCompositor01.kt)
![DemoCompositor01Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-compositor/images/DemoCompositor01Kt.png)
### DemoCompositor02
[source code](src/demo/kotlin/DemoCompositor02.kt)
![DemoCompositor02Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-compositor/images/DemoCompositor02Kt.png)
### DemoUse01
[source code](src/demo/kotlin/DemoUse01.kt)
![DemoUse01Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-compositor/images/DemoUse01Kt.png)

View File

@@ -93,3 +93,7 @@ println(Easing.values().size)
<!-- __demos__ -->
## Demos
### DemoEasings01
[source code](src/demo/kotlin/DemoEasings01.kt)
![DemoEasings01Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-easing/images/DemoEasings01Kt.png)

View File

@@ -115,3 +115,47 @@ All distortion effects are opacity preserving
![DemoFluidDistort01Kt](https://github.com/openrndr/orx/blob/media/orx-fx/images/DemoFluidDistort01Kt.png
<!-- __demos__ -->
## Demos
### DemoBlur01
[source code](src/demo/kotlin/DemoBlur01.kt)
![DemoBlur01Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-fx/images/DemoBlur01Kt.png)
### DemoCannyEdgeDetector01
[source code](src/demo/kotlin/DemoCannyEdgeDetector01.kt)
![DemoCannyEdgeDetector01Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-fx/images/DemoCannyEdgeDetector01Kt.png)
### DemoColorDuotone01
[source code](src/demo/kotlin/DemoColorDuotone01.kt)
![DemoColorDuotone01Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-fx/images/DemoColorDuotone01Kt.png)
### DemoColorDuotoneGradient01
[source code](src/demo/kotlin/DemoColorDuotoneGradient01.kt)
![DemoColorDuotoneGradient01Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-fx/images/DemoColorDuotoneGradient01Kt.png)
### DemoColorPosterize01
[source code](src/demo/kotlin/DemoColorPosterize01.kt)
![DemoColorPosterize01Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-fx/images/DemoColorPosterize01Kt.png)
### DemoDistortLenses01
[source code](src/demo/kotlin/DemoDistortLenses01.kt)
![DemoDistortLenses01Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-fx/images/DemoDistortLenses01Kt.png)
### DemoDitherLumaHalftone01
[source code](src/demo/kotlin/DemoDitherLumaHalftone01.kt)
![DemoDitherLumaHalftone01Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-fx/images/DemoDitherLumaHalftone01Kt.png)
### DemoFluidDistort01
[source code](src/demo/kotlin/DemoFluidDistort01.kt)
![DemoFluidDistort01Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-fx/images/DemoFluidDistort01Kt.png)
### DemoOkLab01
[source code](src/demo/kotlin/DemoOkLab01.kt)
![DemoOkLab01Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-fx/images/DemoOkLab01Kt.png)

View File

@@ -190,3 +190,27 @@ val v8 = billow(seed, x, y, z, ::perlinLinear, octaves, lacunarity, gain)
![DemoPoissonDiskSamplingKt](https://github.com/openrndr/orx/blob/media/orx-noise/images/DemoPoissonDiskSamplingKt.png
<!-- __demos__ -->
## Demos
### DemoFunctionalComposition01
[source code](src/demo/kotlin/DemoFunctionalComposition01.kt)
![DemoFunctionalComposition01Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-noise/images/DemoFunctionalComposition01Kt.png)
### DemoGradientPerturb2D
[source code](src/demo/kotlin/DemoGradientPerturb2D.kt)
![DemoGradientPerturb2DKt](https://raw.githubusercontent.com/openrndr/orx/media/orx-noise/images/DemoGradientPerturb2DKt.png)
### DemoGradientPerturb3D
[source code](src/demo/kotlin/DemoGradientPerturb3D.kt)
![DemoGradientPerturb3DKt](https://raw.githubusercontent.com/openrndr/orx/media/orx-noise/images/DemoGradientPerturb3DKt.png)
### DemoScatter01
[source code](src/demo/kotlin/DemoScatter01.kt)
![DemoScatter01Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-noise/images/DemoScatter01Kt.png)
### DemoSimplex01
[source code](src/demo/kotlin/DemoSimplex01.kt)
![DemoSimplex01Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-noise/images/DemoSimplex01Kt.png)

View File

@@ -22,3 +22,12 @@ val nearestQuery = quadTree.nearest(points[4], 20.0)
Ricardo Matias / [@ricardomatias](https://github.com/ricardomatias)
<!-- __demos__ -->
## Demos
### DemoQuadTree01
[source code](src/demo/kotlin/DemoQuadTree01.kt)
![DemoQuadTree01Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-quadtree/images/DemoQuadTree01Kt.png)
### DemoQuadTree02
[source code](src/demo/kotlin/DemoQuadTree02.kt)
![DemoQuadTree02Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-quadtree/images/DemoQuadTree02Kt.png)

View File

@@ -8,3 +8,32 @@ Collection of shader based fills and strokes. Currently includes 4 types of grad
![DemoRadialGradient01Kt](https://github.com/openrndr/orx/blob/media/orx-shade-styles/images/DemoRadialGradient01Kt.png
<!-- __demos__ -->
## Demos
### DemoAllGradients01
[source code](src/demo/kotlin/DemoAllGradients01.kt)
![DemoAllGradients01Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-shade-styles/images/DemoAllGradients01Kt.png)
### DemoLinearGradient
[source code](src/demo/kotlin/DemoLinearGradient.kt)
![DemoLinearGradientKt](https://raw.githubusercontent.com/openrndr/orx/media/orx-shade-styles/images/DemoLinearGradientKt.png)
### DemoNPointGradient01
[source code](src/demo/kotlin/DemoNPointGradient01.kt)
![DemoNPointGradient01Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-shade-styles/images/DemoNPointGradient01Kt.png)
### DemoNPointLinearGradient01
[source code](src/demo/kotlin/DemoNPointLinearGradient01.kt)
![DemoNPointLinearGradient01Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-shade-styles/images/DemoNPointLinearGradient01Kt.png)
### DemoNPointRadialGradient01
[source code](src/demo/kotlin/DemoNPointRadialGradient01.kt)
![DemoNPointRadialGradient01Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-shade-styles/images/DemoNPointRadialGradient01Kt.png)
### DemoRadialGradient01
[source code](src/demo/kotlin/DemoRadialGradient01.kt)
![DemoRadialGradient01Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-shade-styles/images/DemoRadialGradient01Kt.png)

View File

@@ -4,3 +4,92 @@ Collection of 2D shape generators (polygon, star, rounded rectangle) and shape m
<!-- __demos__ -->
## Demos
### DemoAlphaShape
[source code](src/demo/kotlin/DemoAlphaShape.kt)
![DemoAlphaShapeKt](https://raw.githubusercontent.com/openrndr/orx/media/orx-shapes/images/DemoAlphaShapeKt.png)
### DemoBezierPatch01
[source code](src/demo/kotlin/DemoBezierPatch01.kt)
![DemoBezierPatch01Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-shapes/images/DemoBezierPatch01Kt.png)
### DemoBezierPatch02
[source code](src/demo/kotlin/DemoBezierPatch02.kt)
![DemoBezierPatch02Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-shapes/images/DemoBezierPatch02Kt.png)
### DemoBezierPatch03
[source code](src/demo/kotlin/DemoBezierPatch03.kt)
![DemoBezierPatch03Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-shapes/images/DemoBezierPatch03Kt.png)
### DemoBezierPatch04
[source code](src/demo/kotlin/DemoBezierPatch04.kt)
![DemoBezierPatch04Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-shapes/images/DemoBezierPatch04Kt.png)
### DemoBezierPatch05
[source code](src/demo/kotlin/DemoBezierPatch05.kt)
![DemoBezierPatch05Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-shapes/images/DemoBezierPatch05Kt.png)
### DemoBezierPatchDrawer01
[source code](src/demo/kotlin/DemoBezierPatchDrawer01.kt)
![DemoBezierPatchDrawer01Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-shapes/images/DemoBezierPatchDrawer01Kt.png)
### DemoBezierPatchDrawer02
[source code](src/demo/kotlin/DemoBezierPatchDrawer02.kt)
![DemoBezierPatchDrawer02Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-shapes/images/DemoBezierPatchDrawer02Kt.png)
### DemoBezierPatchDrawer03
[source code](src/demo/kotlin/DemoBezierPatchDrawer03.kt)
![DemoBezierPatchDrawer03Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-shapes/images/DemoBezierPatchDrawer03Kt.png)
### DemoBezierPatches01
[source code](src/demo/kotlin/DemoBezierPatches01.kt)
![DemoBezierPatches01Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-shapes/images/DemoBezierPatches01Kt.png)
### DemoHobbyCurve01
[source code](src/demo/kotlin/DemoHobbyCurve01.kt)
![DemoHobbyCurve01Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-shapes/images/DemoHobbyCurve01Kt.png)
### DemoHobbyCurve02
[source code](src/demo/kotlin/DemoHobbyCurve02.kt)
![DemoHobbyCurve02Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-shapes/images/DemoHobbyCurve02Kt.png)
### DemoRectangleGrid01
[source code](src/demo/kotlin/DemoRectangleGrid01.kt)
![DemoRectangleGrid01Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-shapes/images/DemoRectangleGrid01Kt.png)
### DemoRectangleGrid02
[source code](src/demo/kotlin/DemoRectangleGrid02.kt)
![DemoRectangleGrid02Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-shapes/images/DemoRectangleGrid02Kt.png)
### DemoRegularPolygon
[source code](src/demo/kotlin/DemoRegularPolygon.kt)
![DemoRegularPolygonKt](https://raw.githubusercontent.com/openrndr/orx/media/orx-shapes/images/DemoRegularPolygonKt.png)
### DemoRegularStar01
[source code](src/demo/kotlin/DemoRegularStar01.kt)
![DemoRegularStar01Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-shapes/images/DemoRegularStar01Kt.png)
### DemoRegularStar02
[source code](src/demo/kotlin/DemoRegularStar02.kt)
![DemoRegularStar02Kt](https://raw.githubusercontent.com/openrndr/orx/media/orx-shapes/images/DemoRegularStar02Kt.png)
### DemoRoundedRectangle
[source code](src/demo/kotlin/DemoRoundedRectangle.kt)
![DemoRoundedRectangleKt](https://raw.githubusercontent.com/openrndr/orx/media/orx-shapes/images/DemoRoundedRectangleKt.png)