*ColorMaterial()

Creates a color to be referenced by entities, such as graphics.

Syntax

*ColorMaterial(color_name,"color_label")

Arguments

color_name
The variable name of the material color.
Data type: varname
color_label
The descriptive label of the material color.
Data type: label

Example

*ColorMaterial(mat_aluminum_alloy, "Aluminum alloy")
*SetColorMaterialComplex(mat_aluminum_alloy, 1, 32.7007, 0, 0, 0, 1, 1, 1, 0.13923, 0.13923, 0.13923, 0.69615, 0.69615, 0.69615)
*ColorMaterial(mat_color1, "Color 1")
*SetColorMaterialSimple(mat_color1, 0.4, 0.7, 0.8, 1.0)
*SetColorMaterialReference(gra_0, mat_color1)

Context

*BeginMdl()

*DefineAnalysis()

*DefineSystem()

Properties

Table 1.
Property Returns Data Type Description
label string The descriptive label of the material color.
varname string The variable name of the material color.