Skip to Main Content Skip to Search
Product Documentation

FillColorDirectionthe direction of color transitions on surfaces

FillColorDirectionXx-component of the direction of color transitions on surfaces

FillColorDirectionYy-component of the direction of color transitions on surfaces

FillColorDirectionZz-component of the direction of color transitions on surfaces

FillColorDirection determines the direction in which the color transitions for FillColorType = Dichromatic etc. take place.

→ Examples

Attribute

Type

Value

See Also:

FillColor, FillColor2, FillColorType, LineColorDirection

Details:

When setting FillColorType to some other value than Flat or Functional, MuPAD® produces a “height-coloring.” By default, this color method actually uses the height of a point. Using FillColorDirection, the axis along which the color method should be applied can be changed.

Example 1

By default, MuPAD uses height coloring along the z axis for 3D objects:

s := plot::Spherical([sin(r),thet/(r+1)+1, thet*r],
                     r=0..1, thet=0..3*PI, Submesh=[2,2]):
plot(s)

MuPAD graphics

By changing FillColorDirection, the color can be rotated on the object:

plot(s, FillColorDirection = [0, 1, 0])

MuPAD graphics

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS