add demos to README.md
This commit is contained in:
@@ -49,21 +49,41 @@ 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)
|
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__ -->
|
||||||
## Demos
|
## Demos
|
||||||
### DemoHSLUV02
|
### DemoColorPlane01
|
||||||
[source code](src/demo/kotlin/DemoHSLUV02.kt)
|
[source code](src/demo/kotlin/DemoColorPlane01.kt)
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### DemoHistogram03
|
|
||||||
[source code](src/demo/kotlin/DemoHistogram03.kt)
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
### DemoColorPlane02
|
### DemoColorPlane02
|
||||||
[source code](src/demo/kotlin/DemoColorPlane02.kt)
|
[source code](src/demo/kotlin/DemoColorPlane02.kt)
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
### DemoColorRange01
|
||||||
|
[source code](src/demo/kotlin/DemoColorRange01.kt)
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
### DemoColorRange02
|
||||||
|
[source code](src/demo/kotlin/DemoColorRange02.kt)
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
### DemoColorRange03
|
||||||
|
[source code](src/demo/kotlin/DemoColorRange03.kt)
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
### DemoColorRange04
|
||||||
|
[source code](src/demo/kotlin/DemoColorRange04.kt)
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
### DemoFettePalette01
|
||||||
|
[source code](src/demo/kotlin/DemoFettePalette01.kt)
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
### DemoFettePalette02
|
### DemoFettePalette02
|
||||||
[source code](src/demo/kotlin/DemoFettePalette02.kt)
|
[source code](src/demo/kotlin/DemoFettePalette02.kt)
|
||||||
|
|
||||||
@@ -74,52 +94,32 @@ Two color spaces are added: `ColorHSLUVa` and `ColorHPLUVa`, they are an impleme
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
### DemoColorRange03
|
### DemoHSLUV02
|
||||||
[source code](src/demo/kotlin/DemoColorRange03.kt)
|
[source code](src/demo/kotlin/DemoHSLUV02.kt)
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### DemoHistogram02
|
|
||||||
[source code](src/demo/kotlin/DemoHistogram02.kt)
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
### DemoFettePalette01
|
|
||||||
[source code](src/demo/kotlin/DemoFettePalette01.kt)
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
### DemoXSLUV01
|
|
||||||
[source code](src/demo/kotlin/DemoXSLUV01.kt)
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
### DemoColorRange04
|
|
||||||
[source code](src/demo/kotlin/DemoColorRange04.kt)
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
### DemoOKHSV01
|
|
||||||
[source code](src/demo/kotlin/DemoOKHSV01.kt)
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
### DemoHistogram01
|
### DemoHistogram01
|
||||||
[source code](src/demo/kotlin/DemoHistogram01.kt)
|
[source code](src/demo/kotlin/DemoHistogram01.kt)
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### DemoColorPlane01
|
### DemoHistogram02
|
||||||
[source code](src/demo/kotlin/DemoColorPlane01.kt)
|
[source code](src/demo/kotlin/DemoHistogram02.kt)
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### DemoColorRange02
|
### DemoHistogram03
|
||||||
[source code](src/demo/kotlin/DemoColorRange02.kt)
|
[source code](src/demo/kotlin/DemoHistogram03.kt)
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### DemoColorRange01
|
### DemoOKHSV01
|
||||||
[source code](src/demo/kotlin/DemoColorRange01.kt)
|
[source code](src/demo/kotlin/DemoOKHSV01.kt)
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
### DemoXSLUV01
|
||||||
|
[source code](src/demo/kotlin/DemoXSLUV01.kt)
|
||||||
|
|
||||||
|

|
||||||
|
|||||||
@@ -54,12 +54,12 @@ fun main() {
|
|||||||
```
|
```
|
||||||
<!-- __demos__ -->
|
<!-- __demos__ -->
|
||||||
## Demos
|
## Demos
|
||||||
### DemoUse01
|
|
||||||
[source code](src/demo/kotlin/DemoUse01.kt)
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
### DemoCompositor01
|
### DemoCompositor01
|
||||||
[source code](src/demo/kotlin/DemoCompositor01.kt)
|
[source code](src/demo/kotlin/DemoCompositor01.kt)
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
### DemoUse01
|
||||||
|
[source code](src/demo/kotlin/DemoUse01.kt)
|
||||||
|
|
||||||
|

|
||||||
|
|||||||
@@ -190,16 +190,6 @@ val v8 = billow(seed, x, y, z, ::perlinLinear, octaves, lacunarity, gain)
|
|||||||

|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
### DemoScatter01
|
|
||||||
[source code](src/demo/kotlin/DemoScatter01.kt)
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
### DemoFunctionalComposition01
|
### DemoFunctionalComposition01
|
||||||
[source code](src/demo/kotlin/DemoFunctionalComposition01.kt)
|
[source code](src/demo/kotlin/DemoFunctionalComposition01.kt)
|
||||||
|
|
||||||
@@ -214,3 +204,13 @@ val v8 = billow(seed, x, y, z, ::perlinLinear, octaves, lacunarity, gain)
|
|||||||
[source code](src/demo/kotlin/DemoGradientPerturb3D.kt)
|
[source code](src/demo/kotlin/DemoGradientPerturb3D.kt)
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
### DemoScatter01
|
||||||
|
[source code](src/demo/kotlin/DemoScatter01.kt)
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
### DemoSimplex01
|
||||||
|
[source code](src/demo/kotlin/DemoSimplex01.kt)
|
||||||
|
|
||||||
|

|
||||||
|
|||||||
@@ -22,12 +22,12 @@ val nearestQuery = quadTree.nearest(points[4], 20.0)
|
|||||||
Ricardo Matias / [@ricardomatias](https://github.com/ricardomatias)
|
Ricardo Matias / [@ricardomatias](https://github.com/ricardomatias)
|
||||||
<!-- __demos__ -->
|
<!-- __demos__ -->
|
||||||
## Demos
|
## Demos
|
||||||
### DemoQuadTree02
|
|
||||||
[source code](src/demo/kotlin/DemoQuadTree02.kt)
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
### DemoQuadTree01
|
### DemoQuadTree01
|
||||||
[source code](src/demo/kotlin/DemoQuadTree01.kt)
|
[source code](src/demo/kotlin/DemoQuadTree01.kt)
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
### DemoQuadTree02
|
||||||
|
[source code](src/demo/kotlin/DemoQuadTree02.kt)
|
||||||
|
|
||||||
|

|
||||||
|
|||||||
@@ -8,21 +8,6 @@ Collection of shader based fills and strokes. Currently includes 4 types of grad
|
|||||||

|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
### DemoNPointRadialGradient01
|
|
||||||
[source code](src/demo/kotlin/DemoNPointRadialGradient01.kt)
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
### DemoNPointLinearGradient01
|
|
||||||
[source code](src/demo/kotlin/DemoNPointLinearGradient01.kt)
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
### DemoAllGradients01
|
### DemoAllGradients01
|
||||||
[source code](src/demo/kotlin/DemoAllGradients01.kt)
|
[source code](src/demo/kotlin/DemoAllGradients01.kt)
|
||||||
|
|
||||||
@@ -37,3 +22,18 @@ Collection of shader based fills and strokes. Currently includes 4 types of grad
|
|||||||
[source code](src/demo/kotlin/DemoNPointGradient01.kt)
|
[source code](src/demo/kotlin/DemoNPointGradient01.kt)
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
### DemoNPointLinearGradient01
|
||||||
|
[source code](src/demo/kotlin/DemoNPointLinearGradient01.kt)
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
### DemoNPointRadialGradient01
|
||||||
|
[source code](src/demo/kotlin/DemoNPointRadialGradient01.kt)
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
### DemoRadialGradient01
|
||||||
|
[source code](src/demo/kotlin/DemoRadialGradient01.kt)
|
||||||
|
|
||||||
|

|
||||||
|
|||||||
@@ -4,65 +4,45 @@ Collection of 2D shape generators (polygon, star, rounded rectangle) and shape m
|
|||||||
|
|
||||||
<!-- __demos__ -->
|
<!-- __demos__ -->
|
||||||
## Demos
|
## Demos
|
||||||
### DemoBezierPatchDrawer02
|
### DemoAlphaShape
|
||||||
[source code](src/demo/kotlin/DemoBezierPatchDrawer02.kt)
|
[source code](src/demo/kotlin/DemoAlphaShape.kt)
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### DemoRegularPolygon
|
|
||||||
[source code](src/demo/kotlin/DemoRegularPolygon.kt)
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
### DemoBezierPatch03
|
|
||||||
[source code](src/demo/kotlin/DemoBezierPatch03.kt)
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
### DemoRegularStar02
|
|
||||||
[source code](src/demo/kotlin/DemoRegularStar02.kt)
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
### DemoRegularStar01
|
|
||||||
[source code](src/demo/kotlin/DemoRegularStar01.kt)
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
### DemoBezierPatch05
|
|
||||||
[source code](src/demo/kotlin/DemoBezierPatch05.kt)
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
### DemoBezierPatch01
|
### DemoBezierPatch01
|
||||||
[source code](src/demo/kotlin/DemoBezierPatch01.kt)
|
[source code](src/demo/kotlin/DemoBezierPatch01.kt)
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### DemoHobbyCurve02
|
|
||||||
[source code](src/demo/kotlin/DemoHobbyCurve02.kt)
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
### DemoRoundedRectangle
|
|
||||||
[source code](src/demo/kotlin/DemoRoundedRectangle.kt)
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
### DemoAlphaShape
|
|
||||||
[source code](src/demo/kotlin/DemoAlphaShape.kt)
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
### DemoBezierPatch02
|
### DemoBezierPatch02
|
||||||
[source code](src/demo/kotlin/DemoBezierPatch02.kt)
|
[source code](src/demo/kotlin/DemoBezierPatch02.kt)
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### DemoHobbyCurve01
|
### DemoBezierPatch03
|
||||||
[source code](src/demo/kotlin/DemoHobbyCurve01.kt)
|
[source code](src/demo/kotlin/DemoBezierPatch03.kt)
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
### DemoBezierPatch04
|
||||||
|
[source code](src/demo/kotlin/DemoBezierPatch04.kt)
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
### DemoBezierPatch05
|
||||||
|
[source code](src/demo/kotlin/DemoBezierPatch05.kt)
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
### DemoBezierPatchDrawer01
|
||||||
|
[source code](src/demo/kotlin/DemoBezierPatchDrawer01.kt)
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
### DemoBezierPatchDrawer02
|
||||||
|
[source code](src/demo/kotlin/DemoBezierPatchDrawer02.kt)
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
### DemoBezierPatchDrawer03
|
### DemoBezierPatchDrawer03
|
||||||
[source code](src/demo/kotlin/DemoBezierPatchDrawer03.kt)
|
[source code](src/demo/kotlin/DemoBezierPatchDrawer03.kt)
|
||||||
@@ -74,17 +54,37 @@ Collection of 2D shape generators (polygon, star, rounded rectangle) and shape m
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
### DemoBezierPatchDrawer01
|
### DemoHobbyCurve01
|
||||||
[source code](src/demo/kotlin/DemoBezierPatchDrawer01.kt)
|
[source code](src/demo/kotlin/DemoHobbyCurve01.kt)
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### DemoBezierPatch04
|
### DemoHobbyCurve02
|
||||||
[source code](src/demo/kotlin/DemoBezierPatch04.kt)
|
[source code](src/demo/kotlin/DemoHobbyCurve02.kt)
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### DemoRectangleGrid
|
### DemoRectangleGrid
|
||||||
[source code](src/demo/kotlin/DemoRectangleGrid.kt)
|
[source code](src/demo/kotlin/DemoRectangleGrid.kt)
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
### DemoRegularPolygon
|
||||||
|
[source code](src/demo/kotlin/DemoRegularPolygon.kt)
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
### DemoRegularStar01
|
||||||
|
[source code](src/demo/kotlin/DemoRegularStar01.kt)
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
### DemoRegularStar02
|
||||||
|
[source code](src/demo/kotlin/DemoRegularStar02.kt)
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
### DemoRoundedRectangle
|
||||||
|
[source code](src/demo/kotlin/DemoRoundedRectangle.kt)
|
||||||
|
|
||||||
|

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