Package | Description |
---|---|
org.dayflower.pathtracer.color |
Provides the Color API.
|
org.dayflower.pathtracer.color.colorspace |
Provides
ColorSpace implementations. |
org.dayflower.pathtracer.color.spectralcurve |
Provides
SpectralCurve implementations. |
org.dayflower.pathtracer.scene |
Provides the Scene API.
|
org.dayflower.pathtracer.scene.texture |
Provides
Texture implementations. |
Modifier and Type | Field and Description |
---|---|
static Color |
Color.BLACK
A
Color denoting the color black. |
static Color |
Color.BLUE
A
Color denoting the color blue. |
static Color |
Color.CYAN
A
Color denoting the color cyan. |
static Color |
Color.GRAY
A
Color denoting the color gray. |
static Color |
Color.GREEN
A
Color denoting the color green. |
static Color |
Color.MAGENTA
A
Color denoting the color magenta. |
static Color |
Color.ORANGE
A
Color denoting the color orange. |
static Color |
Color.RED
A
Color denoting the color red. |
static Color |
Color.TRANSPARENT
A
Color denoting total transparency. |
static Color |
Color.WHITE
A
Color denoting the color white. |
static Color |
Color.YELLOW
A
Color denoting the color yellow. |
Modifier and Type | Method and Description |
---|---|
Color |
Color.add(Color color)
Adds
color to this Color instance. |
Color |
Color.add(float s)
Adds
s to the R-, G- and B-component values of this Color instance. |
Color |
Color.add(float r,
float g,
float b)
Adds
r , g and b to the R-, G- and B-component values of this Color instance, respectively. |
Color |
Color.add(float r,
float g,
float b,
float a)
Adds
r , g , b and a to the R-, G-, B- and A-component values of this Color instance, respectively. |
Color |
Color.applyGammaCorrection()
Applies Gamma Correction to this
Color instance. |
Color |
Color.applyGammaCorrection(float gamma)
Applies Gamma Correction to this
Color instance. |
Color |
Color.applyToneMapping()
Applies Tone Mapping to this
Color instance. |
Color |
ToneMapper.applyToneMapping(Color color)
Applies Tone Mapping to
color . |
Color |
Color.applyToneMapping(ToneMapper toneMapper)
Applies Tone Mapping to this
Color instance. |
Color |
Color.constrain()
Constrains this
Color instance to be representable. |
Color |
Color.divide(Color color)
Divides this
Color instance with color . |
Color |
Color.divide(float s)
Divides the R-, G- and B-component values of this
Color instance with s . |
Color |
Color.divide(float r,
float g,
float b)
Divides the R-, G- and B-component values of this
Color instance with r , g and b , respectively. |
Color |
Color.divide(float r,
float g,
float b,
float a)
Divides the R-, G-, B- and A-component values of this
Color instance with r , g , b and a , respectively. |
Color |
Color.exp()
Returns a new
Color instance with Euler's number e raised to the power of each RGB-component value. |
Color |
Color.makeDisplayCompatible()
Makes this
Color instance display compatible. |
Color |
Color.makeDisplayCompatible(float gamma)
Makes this
Color instance display compatible. |
Color |
Color.makeDisplayCompatible(float gamma,
ToneMapper toneMapper)
Makes this
Color instance display compatible. |
Color |
Color.makeDisplayCompatible(ToneMapper toneMapper)
Makes this
Color instance display compatible. |
Color |
Color.multiply(Color color)
Multiplies this
Color instance with color . |
Color |
Color.multiply(float s)
Multiplies the R-, G- and B-component values of this
Color instance with s . |
Color |
Color.multiply(float r,
float g,
float b)
Multiplies the R-, G- and B-component values of this
Color instance with r , g and b , respectively. |
Color |
Color.multiply(float r,
float g,
float b,
float a)
Multiplies the R-, G-, B- and A-component values of this
Color instance with r , g , b and a , respectively. |
Color |
Color.negate()
Returns a new
Color instance with each RGB-component value negated. |
Color |
Color.pow(Color color)
Returns a new
Color instance with the R-, G- and B-component values of this Color instance raised to the power of the R-, G- and B-component values of color , respectively. |
Color |
Color.pow(float exponent)
Returns a new
Color instance with the R-, G- and B-component values of this Color instance raised to the power of exponent . |
Color |
Color.pow(float r,
float g,
float b)
Returns a new
Color instance with the R-, G- and B-component values of this Color instance raised to the power of r , g and b , respectively. |
Color |
Color.pow(float r,
float g,
float b,
float a)
Returns a new
Color instance with the R-, G-, B- and A-component values of this Color instance raised to the power of r , g , b and a , respectively. |
Color |
Color.redoGammaCorrection(ColorSpace colorSpace)
Call this method to redo Gamma Correction using the specified
ColorSpace . |
Color |
Color.saturate(float min,
float max)
Saturates this
Color instance, such that each component value will lie in the range [min, max] . |
Color |
Color.sqrt()
Returns a new
Color instance with the square root performed on each RGB-component value. |
Color |
Color.subtract(Color color)
Subtracts this
Color instance with color . |
Color |
Color.subtract(float s)
Subtracts
s from the R-, G- and B-component values of this Color instance. |
Color |
Color.subtract(float r,
float g,
float b)
Subtracts the R-, G- and B-component values of this
Color instance with r , g and b , respectively. |
Color |
Color.subtract(float r,
float g,
float b,
float a)
Subtracts the R-, G-, B- and A-component values of this
Color instance with r , g , b and a , respectively. |
Color |
SpectralCurve.toXYZ()
Returns a CIE XYZ
Color . |
Color |
Color.undoGammaCorrection(ColorSpace colorSpace)
Call this method to undo Gamma Correction using the specified
ColorSpace . |
Modifier and Type | Method and Description |
---|---|
Color |
Color.add(Color color)
Adds
color to this Color instance. |
Color |
ToneMapper.applyToneMapping(Color color)
Applies Tone Mapping to
color . |
Color |
Color.divide(Color color)
Divides this
Color instance with color . |
Color |
Color.multiply(Color color)
Multiplies this
Color instance with color . |
Color |
Color.pow(Color color)
Returns a new
Color instance with the R-, G- and B-component values of this Color instance raised to the power of the R-, G- and B-component values of color , respectively. |
Color |
Color.subtract(Color color)
Subtracts this
Color instance with color . |
Modifier and Type | Method and Description |
---|---|
Color |
RGBColorSpace.convertRGBToXYZ(Color color)
Converts
color from the RGB color space to the XYZ color space. |
Color |
RGBColorSpace.convertXYZToRGB(Color color)
Converts
color from the XYZ color space to the RGB color space. |
Modifier and Type | Method and Description |
---|---|
Color |
RGBColorSpace.convertRGBToXYZ(Color color)
Converts
color from the RGB color space to the XYZ color space. |
Color |
RGBColorSpace.convertXYZToRGB(Color color)
Converts
color from the XYZ color space to the RGB color space. |
Modifier and Type | Method and Description |
---|---|
static Color |
ChromaticSpectralCurve.getXYZ(float x,
float y)
|
Modifier and Type | Method and Description |
---|---|
Color |
Sky.getSunColor()
Returns a
Color with the color of the sun. |
Modifier and Type | Method and Description |
---|---|
Color |
FractionalBrownianMotionTexture.getAddend()
Returns the addend assigned to this
FractionalBrownianMotionTexture instance. |
Color |
ConstantTexture.getColor()
Returns the
Color assigned to this ConstantTexture instance. |
Color |
CheckerboardTexture.getColor0()
Returns one of the two
Color s assigned to this CheckerboardTexture instance. |
Color |
CheckerboardTexture.getColor1()
Returns one of the two
Color s assigned to this CheckerboardTexture instance. |
Color |
FractionalBrownianMotionTexture.getMultiplier()
Returns the multiplier assigned to this
FractionalBrownianMotionTexture instance. |
Constructor and Description |
---|
CheckerboardTexture(Color color)
Constructs a new
CheckerboardTexture instance with a given Color . |
CheckerboardTexture(Color color0,
Color color1)
Constructs a new
CheckerboardTexture instance with two different Color s. |
CheckerboardTexture(Color color0,
Color color1,
float scaleU,
float scaleV)
Constructs a new
CheckerboardTexture instance with two different Color s and scale factors in the U- and V-directions. |
CheckerboardTexture(Color color0,
Color color1,
float scaleU,
float scaleV,
float degrees)
Constructs a new
CheckerboardTexture instance with two different Color s, scale factors in the U- and V-directions and the angle in degrees to rotate it. |
CheckerboardTexture(Color color,
float scaleU,
float scaleV)
Constructs a new
CheckerboardTexture instance with a given Color and scale factors in the U- and V-directions. |
CheckerboardTexture(Color color,
float scaleU,
float scaleV,
float degrees)
Constructs a new
CheckerboardTexture instance with a given Color , scale factors in the U- and V-directions and the angle in degrees to rotate it. |
ConstantTexture(Color color)
Constructs a new
ConstantTexture instance given a Color as its color. |
FractionalBrownianMotionTexture(Color addend,
Color multiplier,
float frequency,
float gain,
int octaves)
Constructs a new
FractionalBrownianMotionTexture instance. |