Uses of Class
org.sunflow.image.Color
Packages that use Color
Package
Description
-
Uses of Color in org.sunflow
Methods in org.sunflow with parameters of type ColorModifier and TypeMethodDescriptionvoid
void
Benchmark.imageUpdate
(int x, int y, int w, int h, Color[] data, float[] alpha) -
Uses of Color in org.sunflow.core
Methods in org.sunflow.core that return ColorModifier and TypeMethodDescriptionfinal Color
Computes a plain diffuse response to the current light samples and global illumination.Get the specified color parameter from this list.LightSample.getDiffuseRadiance()
Get diffuse radiance.GIEngine.getGlobalRadiance
(ShadingState state) This is an optional method for engines that contain a secondary illumination engine which can return an approximation of the global radiance in the scene (like a photon map).final Color
ShadingState.getGlobalRadiance()
Returns the glboal diffuse radiance estimate given by the currentGIEngine
if present.GIEngine.getIrradiance
(ShadingState state, Color diffuseReflectance) Return the incomming irradiance due to indirect diffuse illumination at the specified surface point.final Color
ShadingState.getIrradiance
(Color diffuseReflectance) Gets the total irradiance reaching the current point from diffuse surfaces.Shader.getOpacity
(ShadingState state) Returns how much light is blocked by this shader.Texture.getOpacity
(float x, float y) Texture.getPixel
(float x, float y) Gets the color at location (x,y) in the texture.GlobalPhotonMapInterface.getRadiance
(Point3 p, Vector3 n) Lookup the global diffuse radiance at the specified surface point.Shader.getRadiance
(ShadingState state) Gets the radiance for a specified rendering state.final Color
ShadingState.getResult()
Get the result of shading this pointLightSample.getSpecularRadiance()
Get specular radiance.ShadingCache.lookup
(ShadingState state, Shader shader) final Color
ShadingState.occlusion
(int samples, float maxDist) Simple black and white ambient occlusion.final Color
Ambient occlusion routine, returns a value between bright and dark depending on the amount of geometric occlusion in the scene.final Color
ShadingState.shade()
Run the shader at this surface point.final Color
ShadingState.specularPhong
(Color spec, float power, int numRays) Computes a phong specular response to the current light samples and global illumination.final Color
ShadingState.traceGlossy
(Ray r, int i) Returns the color obtained by recursively tracing the specified ray.final Color
ShadingState.traceReflection
(Ray r, int i) Returns the color obtained by recursively tracing the specified ray.final Color
ShadingState.traceRefraction
(Ray r, int i) Returns the color obtained by recursively tracing the specified ray.final Color
ShadingState.traceShadow
(Ray r) Trace a shadow ray against the scene, and computes the accumulated opacity along the ray.final Color
ShadingState.traceTransparency()
Trace transparency, this is equivalent to tracing a refraction ray in the incoming ray direction.ShadingState.traceTransparentShadow
(float oldMaxT) Methods in org.sunflow.core with parameters of type ColorModifier and TypeMethodDescriptionvoid
ShadingCache.add
(ShadingState state, Shader shader, Color c) void
Add the specified color as a parameter.final Color
Computes a plain diffuse response to the current light samples and global illumination.Get the specified color parameter from this list.GIEngine.getIrradiance
(ShadingState state, Color diffuseReflectance) Return the incomming irradiance due to indirect diffuse illumination at the specified surface point.final Color
ShadingState.getIrradiance
(Color diffuseReflectance) Gets the total irradiance reaching the current point from diffuse surfaces.void
LightSource.getPhoton
(double randX1, double randY1, double randX2, double randY2, Point3 p, Vector3 dir, Color power) Gets a photon to emit from this light source by setting each of the arguments.void
Update the current image with a region of flat color.void
Display.imageUpdate
(int x, int y, int w, int h, Color[] data, float[] alpha) Update the current image with a bucket of data.final Color
Ambient occlusion routine, returns a value between bright and dark depending on the amount of geometric occlusion in the scene.void
Shader.scatterPhoton
(ShadingState state, Color power) Scatter a photon with the specied power.void
LightSample.setRadiance
(Color d, Color s) Set the diffuse and specular radiance emitted by the current light source.final Color
ShadingState.specularPhong
(Color spec, float power, int numRays) Computes a phong specular response to the current light samples and global illumination.void
PhotonStore.store
(ShadingState state, Vector3 dir, Color power, Color diffuse) Store the specified photon.final void
ShadingState.storePhoton
(Vector3 dir, Color power, Color diffuse) Records a photon at the specified location.final void
ShadingState.traceDiffusePhoton
(Ray r, Color power) Trace a new photon from the current location.final void
ShadingState.traceReflectionPhoton
(Ray r, Color power) Trace a new photon from the current location.final void
ShadingState.traceRefractionPhoton
(Ray r, Color power) Trace a new photon from the current location. -
Uses of Color in org.sunflow.core.display
Methods in org.sunflow.core.display with parameters of type ColorModifier and TypeMethodDescriptionvoid
void
void
void
void
FastDisplay.imageUpdate
(int x, int y, int w, int h, Color[] data, float[] alpha) void
FileDisplay.imageUpdate
(int x, int y, int w, int h, Color[] data, float[] alpha) void
FrameDisplay.imageUpdate
(int x, int y, int w, int h, Color[] data, float[] alpha) void
ImgPipeDisplay.imageUpdate
(int x, int y, int w, int h, Color[] data, float[] alpha) -
Uses of Color in org.sunflow.core.gi
Methods in org.sunflow.core.gi that return ColorModifier and TypeMethodDescriptionAmbientOcclusionGIEngine.getGlobalRadiance
(ShadingState state) FakeGIEngine.getGlobalRadiance
(ShadingState state) InstantGI.getGlobalRadiance
(ShadingState state) IrradianceCacheGIEngine.getGlobalRadiance
(ShadingState state) PathTracingGIEngine.getGlobalRadiance
(ShadingState state) AmbientOcclusionGIEngine.getIrradiance
(ShadingState state, Color diffuseReflectance) FakeGIEngine.getIrradiance
(ShadingState state, Color diffuseReflectance) InstantGI.getIrradiance
(ShadingState state, Color diffuseReflectance) IrradianceCacheGIEngine.getIrradiance
(ShadingState state, Color diffuseReflectance) PathTracingGIEngine.getIrradiance
(ShadingState state, Color diffuseReflectance) Methods in org.sunflow.core.gi with parameters of type ColorModifier and TypeMethodDescriptionAmbientOcclusionGIEngine.getIrradiance
(ShadingState state, Color diffuseReflectance) FakeGIEngine.getIrradiance
(ShadingState state, Color diffuseReflectance) InstantGI.getIrradiance
(ShadingState state, Color diffuseReflectance) IrradianceCacheGIEngine.getIrradiance
(ShadingState state, Color diffuseReflectance) PathTracingGIEngine.getIrradiance
(ShadingState state, Color diffuseReflectance) -
Uses of Color in org.sunflow.core.light
Methods in org.sunflow.core.light that return ColorModifier and TypeMethodDescriptionImageBasedLight.getOpacity
(ShadingState state) SphereLight.getOpacity
(ShadingState state) SunSkyLight.getOpacity
(ShadingState state) TriangleMeshLight.getOpacity
(ShadingState state) ImageBasedLight.getRadiance
(ShadingState state) SphereLight.getRadiance
(ShadingState state) SunSkyLight.getRadiance
(ShadingState state) TriangleMeshLight.getRadiance
(ShadingState state) SunSkyLight.getSunColor()
Methods in org.sunflow.core.light with parameters of type ColorModifier and TypeMethodDescriptionvoid
DirectionalSpotlight.getPhoton
(double randX1, double randY1, double randX2, double randY2, Point3 p, Vector3 dir, Color power) void
ImageBasedLight.getPhoton
(double randX1, double randY1, double randX2, double randY2, Point3 p, Vector3 dir, Color power) void
PointLight.getPhoton
(double randX1, double randY1, double randX2, double randY2, Point3 p, Vector3 dir, Color power) void
SphereLight.getPhoton
(double randX1, double randY1, double randX2, double randY2, Point3 p, Vector3 dir, Color power) void
SunSkyLight.getPhoton
(double randX1, double randY1, double randX2, double randY2, Point3 p, Vector3 dir, Color power) void
TriangleMeshLight.getPhoton
(double randX1, double randY1, double randX2, double randY2, Point3 p, Vector3 dir, Color power) void
ImageBasedLight.scatterPhoton
(ShadingState state, Color power) void
SphereLight.scatterPhoton
(ShadingState state, Color power) void
SunSkyLight.scatterPhoton
(ShadingState state, Color power) void
TriangleMeshLight.scatterPhoton
(ShadingState state, Color power) -
Uses of Color in org.sunflow.core.parser
Methods in org.sunflow.core.parser that return Color -
Uses of Color in org.sunflow.core.photonmap
Methods in org.sunflow.core.photonmap that return ColorModifier and TypeMethodDescriptionGlobalPhotonMap.getRadiance
(Point3 p, Vector3 n) GridPhotonMap.getRadiance
(Point3 p, Vector3 n) Methods in org.sunflow.core.photonmap with parameters of type ColorModifier and TypeMethodDescriptionvoid
CausticPhotonMap.store
(ShadingState state, Vector3 dir, Color power, Color diffuse) void
GlobalPhotonMap.store
(ShadingState state, Vector3 dir, Color power, Color diffuse) void
GridPhotonMap.store
(ShadingState state, Vector3 dir, Color power, Color diffuse) -
Uses of Color in org.sunflow.core.primitive
Methods in org.sunflow.core.primitive that return ColorModifier and TypeMethodDescriptionCornellBox.getOpacity
(ShadingState state) Hair.getOpacity
(ShadingState state) CornellBox.getRadiance
(ShadingState state) Hair.getRadiance
(ShadingState state) Methods in org.sunflow.core.primitive with parameters of type ColorModifier and TypeMethodDescriptionvoid
CornellBox.getPhoton
(double randX1, double randY1, double randX2, double randY2, Point3 p, Vector3 dir, Color power) void
CornellBox.scatterPhoton
(ShadingState state, Color power) void
Hair.scatterPhoton
(ShadingState state, Color power) -
Uses of Color in org.sunflow.core.shader
Methods in org.sunflow.core.shader that return ColorModifier and TypeMethodDescriptionAmbientOcclusionShader.getBrightColor
(ShadingState state) TexturedAmbientOcclusionShader.getBrightColor
(ShadingState state) protected Color
AnisotropicWardShader.getDiffuse
(ShadingState state) DiffuseShader.getDiffuse
(ShadingState state) protected Color
PhongShader.getDiffuse
(ShadingState state) ShinyDiffuseShader.getDiffuse
(ShadingState state) TexturedDiffuseShader.getDiffuse
(ShadingState state) TexturedPhongShader.getDiffuse
(ShadingState state) TexturedShinyDiffuseShader.getDiffuse
(ShadingState state) TexturedWardShader.getDiffuse
(ShadingState state) UberShader.getDiffuse
(ShadingState state) WireframeShader.getFillColor
(ShadingState state) WireframeShader.getLineColor
(ShadingState state) AmbientOcclusionShader.getOpacity
(ShadingState state) AnisotropicWardShader.getOpacity
(ShadingState state) ConstantShader.getOpacity
(ShadingState state) DiffuseShader.getOpacity
(ShadingState state) GlassShader.getOpacity
(ShadingState state) IDShader.getOpacity
(ShadingState state) MirrorShader.getOpacity
(ShadingState state) NormalShader.getOpacity
(ShadingState state) PhongShader.getOpacity
(ShadingState state) PrimIDShader.getOpacity
(ShadingState state) QuickGrayShader.getOpacity
(ShadingState state) ShinyDiffuseShader.getOpacity
(ShadingState state) SimpleShader.getOpacity
(ShadingState state) TexturedDiffuseShader.getOpacity
(ShadingState state) TexturedPhongShader.getOpacity
(ShadingState state) TexturedShinyDiffuseShader.getOpacity
(ShadingState state) TexturedWardShader.getOpacity
(ShadingState state) UberShader.getOpacity
(ShadingState state) UVShader.getOpacity
(ShadingState state) ViewCausticsShader.getOpacity
(ShadingState state) ViewGlobalPhotonsShader.getOpacity
(ShadingState state) ViewIrradianceShader.getOpacity
(ShadingState state) WireframeShader.getOpacity
(ShadingState state) AmbientOcclusionShader.getRadiance
(ShadingState state) AnisotropicWardShader.getRadiance
(ShadingState state) ConstantShader.getRadiance
(ShadingState state) DiffuseShader.getRadiance
(ShadingState state) GlassShader.getRadiance
(ShadingState state) IDShader.getRadiance
(ShadingState state) MirrorShader.getRadiance
(ShadingState state) NormalShader.getRadiance
(ShadingState state) PhongShader.getRadiance
(ShadingState state) PrimIDShader.getRadiance
(ShadingState state) QuickGrayShader.getRadiance
(ShadingState state) ShinyDiffuseShader.getRadiance
(ShadingState state) SimpleShader.getRadiance
(ShadingState state) TexturedDiffuseShader.getRadiance
(ShadingState state) TexturedPhongShader.getRadiance
(ShadingState state) TexturedShinyDiffuseShader.getRadiance
(ShadingState state) UberShader.getRadiance
(ShadingState state) UVShader.getRadiance
(ShadingState state) ViewCausticsShader.getRadiance
(ShadingState state) ViewGlobalPhotonsShader.getRadiance
(ShadingState state) ViewIrradianceShader.getRadiance
(ShadingState state) WireframeShader.getRadiance
(ShadingState state) UberShader.getSpecular
(ShadingState state) Methods in org.sunflow.core.shader with parameters of type ColorModifier and TypeMethodDescriptionvoid
AmbientOcclusionShader.scatterPhoton
(ShadingState state, Color power) void
AnisotropicWardShader.scatterPhoton
(ShadingState state, Color power) void
ConstantShader.scatterPhoton
(ShadingState state, Color power) void
DiffuseShader.scatterPhoton
(ShadingState state, Color power) void
GlassShader.scatterPhoton
(ShadingState state, Color power) void
IDShader.scatterPhoton
(ShadingState state, Color power) void
MirrorShader.scatterPhoton
(ShadingState state, Color power) void
NormalShader.scatterPhoton
(ShadingState state, Color power) void
PhongShader.scatterPhoton
(ShadingState state, Color power) void
PrimIDShader.scatterPhoton
(ShadingState state, Color power) void
QuickGrayShader.scatterPhoton
(ShadingState state, Color power) void
ShinyDiffuseShader.scatterPhoton
(ShadingState state, Color power) void
SimpleShader.scatterPhoton
(ShadingState state, Color power) void
UberShader.scatterPhoton
(ShadingState state, Color power) void
UVShader.scatterPhoton
(ShadingState state, Color power) void
ViewCausticsShader.scatterPhoton
(ShadingState state, Color power) void
ViewGlobalPhotonsShader.scatterPhoton
(ShadingState state, Color power) void
ViewIrradianceShader.scatterPhoton
(ShadingState state, Color power) void
WireframeShader.scatterPhoton
(ShadingState state, Color power) Constructors in org.sunflow.core.shader with parameters of type Color -
Uses of Color in org.sunflow.image
Fields in org.sunflow.image declared as ColorModifier and TypeFieldDescriptionstatic final Color
Color.BLACK
static final Color
Color.BLUE
static final Color
Color.CYAN
static final Color
Color.GRAY
static final Color
Color.GREEN
static final Color
Color.MAGENTA
static final Color
Color.RED
static final Color
Color.WHITE
static final Color
Color.YELLOW
Methods in org.sunflow.image that return ColorModifier and TypeMethodDescriptionfinal Color
static final Color
static final Color
static Color
Color.black()
static final Color
static final Color
static final Color
static final Color
final Color
Color.clamp
(float min, float max) final Color
Color.constrainRGB()
final Color
RGBSpace.convertXYZtoRGB
(float X, float Y, float Z) final Color
RGBSpace.convertXYZtoRGB
(XYZColor c) Color.copy()
static Color
ColorFactory.createColor
(String colorspace, float... data) Creates a color value in the renderer's internal color space from a string (representing the color space name) and an array of floating point values.final Color
static final Color
static final Color
final Color
Color.exp()
final Color
final Color
final Color
Color.mul
(float s) static final Color
static final Color
final Color
static final Color
static final Color
final Color
Color.opposite()
abstract Color
Bitmap.readColor
(int x, int y) final Color
Color.set
(float r, float g, float b) final Color
final Color
Color.setRGB
(int rgb) final Color
Color.setRGBE
(int rgbe) final Color
static final Color
static final Color
Color.toLinear()
Color.toNonLinear()
static final Color[]
ColorEncoder.unlinearize
(Color[] color) Moves the colors in the specified array to non-linear space.static final Color[]
Undoes the premultiplication of the specified color array.static Color
Color.white()
Methods in org.sunflow.image with parameters of type ColorModifier and TypeMethodDescriptionfinal Color
static final Color
static final Color
static final Color
static final Color
static final Color
static final Color
final XYZColor
RGBSpace.convertRGBtoXYZ
(Color c) final Color
static final Color
static final Color
static final int[]
ColorEncoder.encodeRGBE
(Color[] color) Encode the specified colors using Ward's RGBE technique.static final boolean
Color.hasContrast
(Color c1, Color c2, float thresh) final Color
final Color
static final Color
static final Color
final Color
static final Color
static final Color
static final byte[]
ColorEncoder.quantizeRGB8
(Color[] color) Quantize the specified colors to 8-bit RGB format.static final byte[]
ColorEncoder.quantizeRGBA8
(Color[] color, float[] alpha) Quantize the specified colors to 8-bit RGBA format.final Color
final Color
static final Color
static final Color
static final Color[]
ColorEncoder.unlinearize
(Color[] color) Moves the colors in the specified array to non-linear space.static final Color[]
Undoes the premultiplication of the specified color array.void
Write a tile of data.Constructors in org.sunflow.image with parameters of type Color -
Uses of Color in org.sunflow.image.formats
Methods in org.sunflow.image.formats that return ColorModifier and TypeMethodDescriptionBitmapBlack.readColor
(int x, int y) BitmapG8.readColor
(int x, int y) BitmapGA8.readColor
(int x, int y) BitmapRGB8.readColor
(int x, int y) BitmapRGBA8.readColor
(int x, int y) BitmapRGBE.readColor
(int x, int y) BitmapXYZ.readColor
(int x, int y) GenericBitmap.readColor
(int x, int y) Methods in org.sunflow.image.formats with parameters of type Color -
Uses of Color in org.sunflow.image.writers
Methods in org.sunflow.image.writers with parameters of type ColorModifier and TypeMethodDescriptionvoid
void
void
void
void
-
Uses of Color in org.sunflow.system
Methods in org.sunflow.system with parameters of type ColorModifier and TypeMethodDescriptionvoid
void
ImagePanel.imageUpdate
(int x, int y, int w, int h, Color[] data, float[] alpha)