add demos to README.md
This commit is contained in:
@@ -391,13 +391,6 @@ The rendering process includes:
|
|||||||
|
|
||||||
### histogram/DemoHistogram01
|
### histogram/DemoHistogram01
|
||||||
|
|
||||||
package histogram
|
|
||||||
|
|
||||||
import org.openrndr.application
|
|
||||||
import org.openrndr.draw.loadImage
|
|
||||||
import org.openrndr.extra.color.statistics.calculateHistogramRGB
|
|
||||||
|
|
||||||
/*
|
|
||||||
Demonstrates how to generate a palette with the top 32 colors
|
Demonstrates how to generate a palette with the top 32 colors
|
||||||
of a loaded image, sorted by luminosity. The colors are displayed
|
of a loaded image, sorted by luminosity. The colors are displayed
|
||||||
as rectangles overlayed on top of the image.
|
as rectangles overlayed on top of the image.
|
||||||
@@ -408,14 +401,6 @@ as rectangles overlayed on top of the image.
|
|||||||
|
|
||||||
### histogram/DemoHistogram02
|
### histogram/DemoHistogram02
|
||||||
|
|
||||||
package histogram
|
|
||||||
|
|
||||||
import org.openrndr.application
|
|
||||||
import org.openrndr.draw.loadImage
|
|
||||||
import org.openrndr.extra.color.statistics.calculateHistogramRGB
|
|
||||||
import kotlin.math.pow
|
|
||||||
|
|
||||||
/*
|
|
||||||
Show the color histogram of an image using non-uniform weighting,
|
Show the color histogram of an image using non-uniform weighting,
|
||||||
prioritizing bright colors.
|
prioritizing bright colors.
|
||||||
|
|
||||||
@@ -425,13 +410,6 @@ prioritizing bright colors.
|
|||||||
|
|
||||||
### histogram/DemoHistogram03
|
### histogram/DemoHistogram03
|
||||||
|
|
||||||
package histogram
|
|
||||||
|
|
||||||
import org.openrndr.application
|
|
||||||
import org.openrndr.draw.loadImage
|
|
||||||
import org.openrndr.extra.color.statistics.calculateHistogramRGB
|
|
||||||
|
|
||||||
/*
|
|
||||||
Create a simple grid-like composition based on colors sampled from image.
|
Create a simple grid-like composition based on colors sampled from image.
|
||||||
The cells are 32 by 32 pixels in size and are filled with a random sample
|
The cells are 32 by 32 pixels in size and are filled with a random sample
|
||||||
taken from the color histogram of the image.
|
taken from the color histogram of the image.
|
||||||
|
|||||||
@@ -35,7 +35,6 @@ The language also holds some tools to manage the position and orientation of the
|
|||||||
## Demos
|
## Demos
|
||||||
### DemoTurtle01
|
### DemoTurtle01
|
||||||
|
|
||||||
/*
|
|
||||||
Drawing a square using the turtle interface.
|
Drawing a square using the turtle interface.
|
||||||
|
|
||||||

|

|
||||||
@@ -44,7 +43,6 @@ Drawing a square using the turtle interface.
|
|||||||
|
|
||||||
### DemoTurtle02
|
### DemoTurtle02
|
||||||
|
|
||||||
/*
|
|
||||||
A simple random walk made using the turtle interface.
|
A simple random walk made using the turtle interface.
|
||||||
|
|
||||||

|

|
||||||
@@ -53,7 +51,6 @@ A simple random walk made using the turtle interface.
|
|||||||
|
|
||||||
### DemoTurtle03
|
### DemoTurtle03
|
||||||
|
|
||||||
/*
|
|
||||||
Drawing shape contours aligned to the turtle's orientation.
|
Drawing shape contours aligned to the turtle's orientation.
|
||||||
|
|
||||||

|

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