This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.


Color blends in the background

Value Summary

InheritedFlat, LeftRight, Pyramid, or TopBottom

Graphics Primitives

ObjectsBackgroundStyle Default Values


BackgroundStyle gives a color blend in the background of a 3D scene.

The background of a 3D scene may be set to a single color (BackgroundStyle = Flat, using BackgroundColor) or to a blend from BackgroundColor to BackgroundColor2, in one of three possible directions: LeftRight and TopBottom are linear blends from left to right or from top to bottom, respectively, while Pyramid sets a linear blend from the center to the borders.


Example 1

We demonstrate all possible styles, using a simple plot and the default values for BackgroundColor and BackgroundColor2:

c1 := plot::Cone(1, [0, 0, 0], [0, 0, 1]):
c2 := plot::Cone(1, [0, 0, 2], [0, 0, 1]):
plot(plot::Scene3d(c1, c2, BackgroundStyle = Flat),
     plot::Scene3d(c1, c2, BackgroundStyle = TopBottom),
     plot::Scene3d(c1, c2, BackgroundStyle = LeftRight),
     plot::Scene3d(c1, c2, BackgroundStyle = Pyramid),
     Layout = Tabular)

delete c1, c2:

See Also

MuPAD Functions

Was this topic helpful?