add demos to README.md
This commit is contained in:
@@ -52,6 +52,7 @@ Two color spaces are added: `ColorHSLUVa` and `ColorHPLUVa`, they are an impleme
|
||||
### colormap/DemoSpectralZucconiColormap
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/colormap/DemoSpectralZucconiColormap.kt)
|
||||
@@ -59,6 +60,7 @@ Two color spaces are added: `ColorHSLUVa` and `ColorHPLUVa`, they are an impleme
|
||||
### colormap/DemoSpectralZucconiColormapPhrase
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/colormap/DemoSpectralZucconiColormapPhrase.kt)
|
||||
@@ -66,6 +68,7 @@ Two color spaces are added: `ColorHSLUVa` and `ColorHPLUVa`, they are an impleme
|
||||
### colormap/DemoSpectralZucconiColormapPlot
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/colormap/DemoSpectralZucconiColormapPlot.kt)
|
||||
@@ -73,6 +76,7 @@ Two color spaces are added: `ColorHSLUVa` and `ColorHPLUVa`, they are an impleme
|
||||
### colormap/DemoTurboColormap
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/colormap/DemoTurboColormap.kt)
|
||||
@@ -80,6 +84,7 @@ Two color spaces are added: `ColorHSLUVa` and `ColorHPLUVa`, they are an impleme
|
||||
### colormap/DemoTurboColormapPhrase
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/colormap/DemoTurboColormapPhrase.kt)
|
||||
@@ -87,6 +92,7 @@ Two color spaces are added: `ColorHSLUVa` and `ColorHPLUVa`, they are an impleme
|
||||
### colormap/DemoTurboColormapPlot
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/colormap/DemoTurboColormapPlot.kt)
|
||||
@@ -103,6 +109,7 @@ Functionality:
|
||||
- Splits the drawing area into an evenly spaced 4x2 grid.
|
||||
- Applies different color matrix inversions (red, green, blue) based on the position index.
|
||||
- Fits the image into each grid cell while providing horizontal alignment adjustments.
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/colormatrix/DemoColorMatrix01.kt)
|
||||
@@ -119,6 +126,7 @@ Functionality:
|
||||
- Splits the drawing area into an evenly spaced 4x2 grid.
|
||||
- Applies different color matrix inversions (red, green, blue) based on the position index.
|
||||
- Fits the image into each grid cell while providing horizontal alignment adjustments.
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/colormatrix/DemoColorMatrix02.kt)
|
||||
@@ -137,6 +145,7 @@ Key features:
|
||||
- Applies a color tint transformation utilizing the red channel, shifting its hue progressively
|
||||
per cell index to create a colorful gradient effect.
|
||||
- Adjusts the positions of the images within each grid cell for aesthetic alignment.
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/colormatrix/DemoColorMatrix03.kt)
|
||||
@@ -155,6 +164,7 @@ a color matrix. The grayscale transformation coefficients for red, green, and bl
|
||||
channels are computed based on the index of the grid cell.
|
||||
- Displays the adjusted image in each grid cell with horizontal alignment modifications
|
||||
to position the images dynamically based on their index within the grid.
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/colormatrix/DemoColorMatrix04.kt)
|
||||
@@ -162,6 +172,7 @@ to position the images dynamically based on their index within the grid.
|
||||
### colorRange/DemoColorRange01
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/colorRange/DemoColorRange01.kt)
|
||||
@@ -169,6 +180,7 @@ to position the images dynamically based on their index within the grid.
|
||||
### colorRange/DemoColorRange02
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/colorRange/DemoColorRange02.kt)
|
||||
@@ -176,6 +188,7 @@ to position the images dynamically based on their index within the grid.
|
||||
### colorRange/DemoColorRange03
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/colorRange/DemoColorRange03.kt)
|
||||
@@ -183,6 +196,7 @@ to position the images dynamically based on their index within the grid.
|
||||
### colorRange/DemoColorRange04
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/colorRange/DemoColorRange04.kt)
|
||||
@@ -190,6 +204,7 @@ to position the images dynamically based on their index within the grid.
|
||||
### DemoColorPalette01
|
||||
|
||||
Demonstrates the creation of color palettes using various available methods
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/DemoColorPalette01.kt)
|
||||
@@ -200,6 +215,7 @@ By default, generated palettes contain colors of varying hue
|
||||
but similar brightness and saturation.
|
||||
Here we alter the brightness of each color using .shade() for
|
||||
an increased dynamic range.
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/DemoColorPalette02.kt)
|
||||
@@ -207,6 +223,7 @@ an increased dynamic range.
|
||||
### DemoColorPlane01
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/DemoColorPlane01.kt)
|
||||
@@ -214,6 +231,7 @@ an increased dynamic range.
|
||||
### DemoColorPlane02
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/DemoColorPlane02.kt)
|
||||
@@ -231,6 +249,7 @@ The rendering process includes:
|
||||
- Setting up an orbital camera extension to provide an interactive 3D view.
|
||||
- Applying a custom fragment shader with a palette-based shading style.
|
||||
- Rendering a grid of 3D spheres, each transformed and rotated to create a dynamic pattern.
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/DemoColorSequence01.kt)
|
||||
@@ -238,6 +257,7 @@ The rendering process includes:
|
||||
### DemoDeltaE
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/DemoDeltaE.kt)
|
||||
@@ -245,6 +265,7 @@ The rendering process includes:
|
||||
### DemoFettePalette01
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/DemoFettePalette01.kt)
|
||||
@@ -252,6 +273,7 @@ The rendering process includes:
|
||||
### DemoFettePalette02
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/DemoFettePalette02.kt)
|
||||
@@ -259,6 +281,7 @@ The rendering process includes:
|
||||
### DemoHSLUV01
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/DemoHSLUV01.kt)
|
||||
@@ -266,6 +289,7 @@ The rendering process includes:
|
||||
### DemoHSLUV02
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/DemoHSLUV02.kt)
|
||||
@@ -273,6 +297,7 @@ The rendering process includes:
|
||||
### DemoHueTools01
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/DemoHueTools01.kt)
|
||||
@@ -280,6 +305,7 @@ The rendering process includes:
|
||||
### DemoMixSpectral01
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/DemoMixSpectral01.kt)
|
||||
@@ -287,6 +313,7 @@ The rendering process includes:
|
||||
### DemoOKHSV01
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/DemoOKHSV01.kt)
|
||||
@@ -294,6 +321,7 @@ The rendering process includes:
|
||||
### DemoXSLUV01
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/DemoXSLUV01.kt)
|
||||
@@ -310,6 +338,7 @@ import org.openrndr.extra.color.statistics.calculateHistogramRGB
|
||||
Demonstrates how to generate a palette with the top 32 colors
|
||||
of a loaded image, sorted by luminosity. The colors are displayed
|
||||
as rectangles overlayed on top of the image.
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/histogram/DemoHistogram01.kt)
|
||||
@@ -326,6 +355,7 @@ import kotlin.math.pow
|
||||
/*
|
||||
Show the color histogram of an image using non-uniform weighting,
|
||||
prioritizing bright colors.
|
||||
|
||||

|
||||
|
||||
[source code](src/jvmDemo/kotlin/histogram/DemoHistogram02.kt)
|
||||
@@ -344,6 +374,7 @@ The cells are 32 by 32 pixels in size and are filled with a random sample
|
||||
taken from the color histogram of the image.
|
||||
|
||||
Note: due to its random nature the resulting animation contains flickering colors.
|
||||
|
||||

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