24.01.2015 Views

Mathematica Tutorial: Visualization And Graphics - Wolfram Research

Mathematica Tutorial: Visualization And Graphics - Wolfram Research

Mathematica Tutorial: Visualization And Graphics - Wolfram Research

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Visualization</strong> and <strong>Graphics</strong> 95<br />

GrayLevel@aD<br />

RGBColor@r,g,bD<br />

Specularity@spec,nD<br />

Glow@colD<br />

matte surface with albedo a<br />

matte surface with intrinsic color<br />

surface with specularity spec and specular exponent n; spec<br />

can be a number between 0 and 1 or an RGBColor<br />

specification<br />

glowing surface with color col<br />

Specifying surface properties of lighted objects.<br />

In[9]:=<br />

This shows a sphere with the default matte white surface, illuminated by several colored light<br />

sources.<br />

<strong>Graphics</strong>3D@Sphere@DD<br />

Out[9]=<br />

In[10]:=<br />

This makes the sphere have low diffuse reflectance, but high specular reflectance. As a result,<br />

the sphere has a “specular highlight” near the light sources, and is quite dark elsewhere.<br />

<strong>Graphics</strong>3D@8GrayLevel@0.2D, Specularity@0.8, 5D, Sphere@D

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!