drop: water drop

Description Usage Arguments Details Value Author(s)

View source: R/shapes.R

Description

The water drop through which rays are traced

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
drop(
  x = 0,
  y = 0,
  z = 0,
  R = 100,
  color = "green",
  alpha = "0.1",
  n = 1.33,
  ri = refractiveIndex
)

Arguments

x

x-coordinate of centre

y

y-coordinate of centre

z

z-coordinate of centre

R

radius

color

rendering color

alpha

rendring alpha

n

refractive index (default)

ri

function returning refractive index

Details

Contains both physical and graphical parameters for rendering.

Value

drop objecr

Author(s)

Fredrik Wartenberg


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