SetColor
Sets the material color.
Syntax
- SetColor(Vec4 color, number mode=Draw.DiffuseColor)
- SetColor(number r, number g, number b, number a, number mode=Draw.DiffuseColor)
- SetColor(number r, number g, number b )
Parameters
- color: the RGBA color to set.
- mode: the color mode. This may be Color::Diffuse or Color::Specular.
- r: the red component of the RGBA color.
- g: the green component of the RGBA color.
- b: the blue component of the RGBA color.
- a: the alpha component of the RGBA color.