## TrianglePoint.Color

### Description

Returns the Color object for this triangle point. The returned RGBA values are not normalized, they range from 0 to 255.

### C# Syntax

    // get accessor

    Color rtn = TrianglePoint.Color;

### Examples

#### VBScript Example

    ' This example illustrates how to enumerate the triangles

    ' of a polygon mesh and print out the RGBA values at each

    ' triangle vertex

    set oRoot = Application.ActiveProject.ActiveScene.root

    set oCube = oRoot.AddGeometry( "Cube", "MeshSurface" )

    CreateVertexColorSupport ,, oCube

    set oGeometry = oCube.activeprimitive.geometry

    set oTriangles = oGeometry.Triangles

    for each oTriangle in oTriangles

    	logmessage oTriangle.Name

    	for each oVertex in oTriangle.Points

    		set oColor = oVertex.Color

    		logmessage vbTab & "RGBA(" & _

    			oColor.red & "," & _

    			oColor.green & "," & _

    			oColor.blue & "," & _

    			oColor.alpha & ")"

    	next

    next

### See Also

TrianglePoint.ColorArray Triangle TriangleCollection TrianglePointCollection Geometry