[orx-noise] Add comments to all demos, add demo
This commit is contained in:
@@ -6,8 +6,7 @@ import org.openrndr.extra.noise.hammersley.hammersley2D
|
||||
/**
|
||||
* Demo that visualizes a 2D Hammersley point set.
|
||||
*
|
||||
* The application is configured to run at 720x720 resolution. The program computes
|
||||
* 400 2D Hammersley points mapped within the bounds of the application's resolution.
|
||||
* The program computes 400 2D Hammersley points mapped within the window bounds.
|
||||
* These points are visualized by rendering circles at their respective positions.
|
||||
*/
|
||||
fun main() = application {
|
||||
|
||||
@@ -11,14 +11,12 @@ import org.openrndr.math.Vector3
|
||||
/**
|
||||
* Demo program rendering a 3D visualization of points distributed using the Hammersley sequence in 3D space.
|
||||
*
|
||||
* The application is set up at a resolution of 720x720 pixels. Within the visual
|
||||
* program, a sphere mesh is created and a set of 1400 points is generated using
|
||||
* the Hammersley sequence. Each point is translated and rendered as a small sphere
|
||||
* in 3D space. This is achieved by mapping the generated points into a scaled domain.
|
||||
* A set of 1400 points is generated using the Hammersley sequence.
|
||||
* Each point is translated and rendered as a small sphere
|
||||
* in 3D space.
|
||||
*
|
||||
* The rendering utilizes the Orbital extension, enabling an interactive 3D camera
|
||||
* to navigate the scene. The visualization relies on the draw loop for continuous
|
||||
* rendering of the points.
|
||||
* The rendering uses the Orbital extension, enabling an interactive 3D camera
|
||||
* to navigate the scene.
|
||||
*/
|
||||
fun main() = application {
|
||||
configure {
|
||||
|
||||
@@ -10,17 +10,15 @@ import org.openrndr.extra.noise.hammersley.hammersley4D
|
||||
import org.openrndr.math.Vector4
|
||||
|
||||
/**
|
||||
* Demo that visualizes a 4D Hammersley point set in a 3D space, with colors determined by the 4th dimension.
|
||||
* Demo visualizing a 4D Hammersley point set in a 3D space, with colors determined by the 4th dimension.
|
||||
*
|
||||
* The application is configured at a resolution of 720x720 pixels. A sphere mesh is created
|
||||
* using the `sphereMesh` utility, and a total of 10,000 4D points are generated with the
|
||||
* `hammersley4D` sequence. These points are scaled, translated, and rendered as small spheres.
|
||||
* A total of 10,000 4D points are generated with the `hammersley4D` sequence.
|
||||
* These points are mapped to a cubical volume and rendered as small spheres.
|
||||
* The color of each sphere is modified based on the 4th dimension of its corresponding point by
|
||||
* shifting the hue in HSV color space.
|
||||
*
|
||||
* This program employs the `Orbital` extension, enabling camera interaction for 3D navigation
|
||||
* of the scene. Rendering occurs within the draw loop, providing continuous visualization
|
||||
* of the point distribution.
|
||||
* of the scene.
|
||||
*/
|
||||
fun main() = application {
|
||||
configure {
|
||||
|
||||
Reference in New Issue
Block a user