Microsoft SDK for Java

setColorRGB

This method of the Direct3dRMFrame Class sets the color of the frame. This color is used for meshes in the frame when the material mode is D3DRMMATERIAL_FROMFRAME.

Syntax

public void setColorRGB(float r, float g, float b);

Parameters

r The red component of a new color for the frame.
g The green component of a new color for the frame.
b The blue component of a new color for the frame.

Each component of the color should be in the range of 0 to 1.


See Also

setMaterialMode

© 1999 Microsoft Corporation. All rights reserved. Terms of use.