generateRainbows: Generate Rainbows

Description Usage Arguments Details Value Author(s)

View source: R/ui.R

Description

Generate the rainbow distributions and plot distributions and maxima.

Usage

1
generateRainbows(rainbows = c(1, 2), nColors = 5, resolution = 1, plot = TRUE)

Arguments

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.

Details

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.

Value

A data.table with one row for each colored ray. See generateDataMatrix() for details.

Author(s)

Fredrik Wartenberg


FredrikWartenberg/rainbowLab documentation built on April 5, 2021, 11:42 p.m.