VertexColors

VertexColors

is an option for graphics primitives which specifies the colors to assign to vertices.

Details

Examples

open allclose all

Basic Examples  (9)

Specify vertex colors for 2D polygons:

Specify vertex colors for 3D polygons:

Specify vertex colors for 2D lines:

Specify vertex colors for 3D lines:

Specify vertex colors for tubes:

Specify vertex colors for 2D points:

Specify vertex colors for 3D points:

Opacity can be specified for each vertex as well:

Assign colors for shared vertices:

Scope  (1)

Some plot functions, such as ListPlot3D, support VertexColors:

Neat Examples  (2)

Create opacity gradients on 3D polygons:

Use an image from ExampleData:

Plot the dataset with vertex colors, simulating the texture:

Wolfram Research (2007), VertexColors, Wolfram Language function, https://reference.wolfram.com/language/ref/VertexColors.html (updated 2008).

Text

Wolfram Research (2007), VertexColors, Wolfram Language function, https://reference.wolfram.com/language/ref/VertexColors.html (updated 2008).

CMS

Wolfram Language. 2007. "VertexColors." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2008. https://reference.wolfram.com/language/ref/VertexColors.html.

APA

Wolfram Language. (2007). VertexColors. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/VertexColors.html

BibTeX

@misc{reference.wolfram_2024_vertexcolors, author="Wolfram Research", title="{VertexColors}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/VertexColors.html}", note=[Accessed: 02-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_vertexcolors, organization={Wolfram Research}, title={VertexColors}, year={2008}, url={https://reference.wolfram.com/language/ref/VertexColors.html}, note=[Accessed: 02-November-2024 ]}