*SetColorMaterialSimple()

Sets the properties for a simple color material.

Syntax

*SetColorMaterialSimple(color_name,red,green,blue,alpha)

Arguments

color_name
The variable name of the material color.
Data type: varname
red
A value between 0 and 1.
The value of the material color red.
The red value for the ambient/specular/shininess light component of a material.
Data type: integer
green
A value between 0 and 1.
The value of the material color green.
The green value for the ambient/specular/shininess light component of a material.
Data type: integer
blue
A value between 0 and 1.
The value of the material color blue.
The blue value for the ambient/specular/shininess light component of a material.
Data type: integer
alpha
The value of the transparency of the material. A value between 0 and 1.
0
Most transparent.
1
Opaque.
Data type: integer

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()

Comments

A color material can be set using either the simple or complex method.