Description Usage Arguments Details Value Author(s)
Generate the rainbow distributions and plot distributions and maxima.
1 | generateRainbows(rainbows = c(1, 2), nColors = 5, resolution = 1, plot = TRUE)
|
rainbows |
The raibows to be generated. Specified by a vector with the rainbow number. Example: c(1,2,3) will generate the first three rainbows. Default = c(1,2). |
nColors |
Number of spectral colors. Default = 5. |
resolution |
The angular resolution. Default = 1. will generate 90 steps with 1 degree bewteen each step. |
Will generate a table of traced rays for the selected rainbows and colors. Rays with uniformly distributed angles between 0 and 90 degrees will traced through a water drop the resolution specificies the angular steps. Each ray will be spectralized with a uniformly distributed light spectrum of nColors steps bewteen visbleMin and visbleMax. The function will not perform 3D rendering.
A data.table with one row for each colored ray. See generateDataMatrix() for details.
Fredrik Wartenberg
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.