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 TypeMethodDescriptionvoidvoidBenchmark.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 ColorComputes 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 ColorShadingState.getGlobalRadiance()Returns the glboal diffuse radiance estimate given by the currentGIEngineif present.GIEngine.getIrradiance(ShadingState state, Color diffuseReflectance) Return the incomming irradiance due to indirect diffuse illumination at the specified surface point.final ColorShadingState.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 ColorShadingState.getResult()Get the result of shading this pointLightSample.getSpecularRadiance()Get specular radiance.ShadingCache.lookup(ShadingState state, Shader shader) final ColorShadingState.occlusion(int samples, float maxDist) Simple black and white ambient occlusion.final ColorAmbient occlusion routine, returns a value between bright and dark depending on the amount of geometric occlusion in the scene.final ColorShadingState.shade()Run the shader at this surface point.final ColorShadingState.specularPhong(Color spec, float power, int numRays) Computes a phong specular response to the current light samples and global illumination.final ColorShadingState.traceGlossy(Ray r, int i) Returns the color obtained by recursively tracing the specified ray.final ColorShadingState.traceReflection(Ray r, int i) Returns the color obtained by recursively tracing the specified ray.final ColorShadingState.traceRefraction(Ray r, int i) Returns the color obtained by recursively tracing the specified ray.final ColorShadingState.traceShadow(Ray r) Trace a shadow ray against the scene, and computes the accumulated opacity along the ray.final ColorShadingState.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 TypeMethodDescriptionvoidShadingCache.add(ShadingState state, Shader shader, Color c) voidAdd the specified color as a parameter.final ColorComputes 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 ColorShadingState.getIrradiance(Color diffuseReflectance) Gets the total irradiance reaching the current point from diffuse surfaces.voidLightSource.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.voidUpdate the current image with a region of flat color.voidDisplay.imageUpdate(int x, int y, int w, int h, Color[] data, float[] alpha) Update the current image with a bucket of data.final ColorAmbient occlusion routine, returns a value between bright and dark depending on the amount of geometric occlusion in the scene.voidShader.scatterPhoton(ShadingState state, Color power) Scatter a photon with the specied power.voidLightSample.setRadiance(Color d, Color s) Set the diffuse and specular radiance emitted by the current light source.final ColorShadingState.specularPhong(Color spec, float power, int numRays) Computes a phong specular response to the current light samples and global illumination.voidPhotonStore.store(ShadingState state, Vector3 dir, Color power, Color diffuse) Store the specified photon.final voidShadingState.storePhoton(Vector3 dir, Color power, Color diffuse) Records a photon at the specified location.final voidShadingState.traceDiffusePhoton(Ray r, Color power) Trace a new photon from the current location.final voidShadingState.traceReflectionPhoton(Ray r, Color power) Trace a new photon from the current location.final voidShadingState.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 TypeMethodDescriptionvoidvoidvoidvoidvoidFastDisplay.imageUpdate(int x, int y, int w, int h, Color[] data, float[] alpha) voidFileDisplay.imageUpdate(int x, int y, int w, int h, Color[] data, float[] alpha) voidFrameDisplay.imageUpdate(int x, int y, int w, int h, Color[] data, float[] alpha) voidImgPipeDisplay.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 TypeMethodDescriptionvoidDirectionalSpotlight.getPhoton(double randX1, double randY1, double randX2, double randY2, Point3 p, Vector3 dir, Color power) voidImageBasedLight.getPhoton(double randX1, double randY1, double randX2, double randY2, Point3 p, Vector3 dir, Color power) voidPointLight.getPhoton(double randX1, double randY1, double randX2, double randY2, Point3 p, Vector3 dir, Color power) voidSphereLight.getPhoton(double randX1, double randY1, double randX2, double randY2, Point3 p, Vector3 dir, Color power) voidSunSkyLight.getPhoton(double randX1, double randY1, double randX2, double randY2, Point3 p, Vector3 dir, Color power) voidTriangleMeshLight.getPhoton(double randX1, double randY1, double randX2, double randY2, Point3 p, Vector3 dir, Color power) voidImageBasedLight.scatterPhoton(ShadingState state, Color power) voidSphereLight.scatterPhoton(ShadingState state, Color power) voidSunSkyLight.scatterPhoton(ShadingState state, Color power) voidTriangleMeshLight.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 TypeMethodDescriptionvoidCausticPhotonMap.store(ShadingState state, Vector3 dir, Color power, Color diffuse) voidGlobalPhotonMap.store(ShadingState state, Vector3 dir, Color power, Color diffuse) voidGridPhotonMap.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 TypeMethodDescriptionvoidCornellBox.getPhoton(double randX1, double randY1, double randX2, double randY2, Point3 p, Vector3 dir, Color power) voidCornellBox.scatterPhoton(ShadingState state, Color power) voidHair.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 ColorAnisotropicWardShader.getDiffuse(ShadingState state) DiffuseShader.getDiffuse(ShadingState state) protected ColorPhongShader.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 TypeMethodDescriptionvoidAmbientOcclusionShader.scatterPhoton(ShadingState state, Color power) voidAnisotropicWardShader.scatterPhoton(ShadingState state, Color power) voidConstantShader.scatterPhoton(ShadingState state, Color power) voidDiffuseShader.scatterPhoton(ShadingState state, Color power) voidGlassShader.scatterPhoton(ShadingState state, Color power) voidIDShader.scatterPhoton(ShadingState state, Color power) voidMirrorShader.scatterPhoton(ShadingState state, Color power) voidNormalShader.scatterPhoton(ShadingState state, Color power) voidPhongShader.scatterPhoton(ShadingState state, Color power) voidPrimIDShader.scatterPhoton(ShadingState state, Color power) voidQuickGrayShader.scatterPhoton(ShadingState state, Color power) voidShinyDiffuseShader.scatterPhoton(ShadingState state, Color power) voidSimpleShader.scatterPhoton(ShadingState state, Color power) voidUberShader.scatterPhoton(ShadingState state, Color power) voidUVShader.scatterPhoton(ShadingState state, Color power) voidViewCausticsShader.scatterPhoton(ShadingState state, Color power) voidViewGlobalPhotonsShader.scatterPhoton(ShadingState state, Color power) voidViewIrradianceShader.scatterPhoton(ShadingState state, Color power) voidWireframeShader.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 ColorColor.BLACKstatic final ColorColor.BLUEstatic final ColorColor.CYANstatic final ColorColor.GRAYstatic final ColorColor.GREENstatic final ColorColor.MAGENTAstatic final ColorColor.REDstatic final ColorColor.WHITEstatic final ColorColor.YELLOWMethods in org.sunflow.image that return ColorModifier and TypeMethodDescriptionfinal Colorstatic final Colorstatic final Colorstatic ColorColor.black()static final Colorstatic final Colorstatic final Colorstatic final Colorfinal ColorColor.clamp(float min, float max) final ColorColor.constrainRGB()final ColorRGBSpace.convertXYZtoRGB(float X, float Y, float Z) final ColorRGBSpace.convertXYZtoRGB(XYZColor c) Color.copy()static ColorColorFactory.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 Colorstatic final Colorstatic final Colorfinal ColorColor.exp()final Colorfinal Colorfinal ColorColor.mul(float s) static final Colorstatic final Colorfinal Colorstatic final Colorstatic final Colorfinal ColorColor.opposite()abstract ColorBitmap.readColor(int x, int y) final ColorColor.set(float r, float g, float b) final Colorfinal ColorColor.setRGB(int rgb) final ColorColor.setRGBE(int rgbe) final Colorstatic final Colorstatic final ColorColor.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 ColorColor.white()Methods in org.sunflow.image with parameters of type ColorModifier and TypeMethodDescriptionfinal Colorstatic final Colorstatic final Colorstatic final Colorstatic final Colorstatic final Colorstatic final Colorfinal XYZColorRGBSpace.convertRGBtoXYZ(Color c) final Colorstatic final Colorstatic final Colorstatic final int[]ColorEncoder.encodeRGBE(Color[] color) Encode the specified colors using Ward's RGBE technique.static final booleanColor.hasContrast(Color c1, Color c2, float thresh) final Colorfinal Colorstatic final Colorstatic final Colorfinal Colorstatic final Colorstatic final Colorstatic 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 Colorfinal Colorstatic final Colorstatic final Colorstatic 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.voidWrite 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 TypeMethodDescriptionvoidvoidvoidvoidvoid -
Uses of Color in org.sunflow.system
Methods in org.sunflow.system with parameters of type ColorModifier and TypeMethodDescriptionvoidvoidImagePanel.imageUpdate(int x, int y, int w, int h, Color[] data, float[] alpha)