GoochShading
is a three-dimensional graphics directive specifying that surfaces that follow are to be drawn with a warm color facing toward the light and a cool color facing away.
GoochShading[col]
uses cool and warm colors obtained by blending col with slate Blue and Orange.
GoochShading[{ccol,wcol}]
uses the cool color ccol and the warm color wcol.
GoochShading[{w1,w2}{ccol,wcol}]
uses the colors ccol and wcol weighted by the wi.
GoochShading["scheme"]
uses the specified gradient color scheme in ColorData.
Details
- GoochShading is also known as cool to warm shading.
- GoochShading is typically used to highlight details and contours of three-dimensional objects.
- The final colors of 3D surfaces are determined by linearly adding RGB colors from the diffuse reflection, specular reflection lights.
- GoochShading[{w1,w2}{ccol,wcol}] specifies that luminosity on the surface should be mapped to the color gradients between ccol and wcol weighted by w1 and w2. A higher weight wi indicates that more of the corresponding color should be used.
- Colors can be defined by RGBColor, Hue or any other color specification. Any number of colors can be used.
- GoochShading[] is effectively equivalent to GoochShading[{,,}].
- In GoochShading[{ccol,wcol}], the colors ccol and wcol are weighted uniformly.
- The setting Lighting"Accent" uses a directional light and faithfully reproduces colors on the surface.
Examples
open allclose allBasic Examples (4)
Scope (13)
Basic Uses (5)
Apply GoochShading to a graphics primitive:
Apply Gooch shading to a plot:
Apply Gooch shading to a chart:
Specification (5)
GoochShading with no arguments uses three gray tones:
Specify the weight of each color:
Use a predefined color scheme from ColorData:
Lighting (3)
GoochShading works with all types of lights:
Use "Accent" lighting to faithfully reproduce colors on the surface.
Properties & Relations (2)
Possible Issues (2)
Text
Wolfram Research (2020), GoochShading, Wolfram Language function, https://reference.wolfram.com/language/ref/GoochShading.html.
CMS
Wolfram Language. 2020. "GoochShading." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/GoochShading.html.
APA
Wolfram Language. (2020). GoochShading. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/GoochShading.html