Color
Introduction
Example
LeftRectangle.Color = Microsoft.Xna.Framework.Color.Red;
RightRectangle.Color = Microsoft.Xna.Framework.Color.Yellow;Last updated
Was this helpful?
The AxisAlignedRectangle object supports changing its Color property by assigning a Color value.
The following example requires that LeftRectangle and RightRectangle are valid Rectangles. For this example the rectangles were created in Glue. The following code can be used to modify the colors of the Rectangles:
LeftRectangle.Color = Microsoft.Xna.Framework.Color.Red;
RightRectangle.Color = Microsoft.Xna.Framework.Color.Yellow;Last updated
Was this helpful?
Was this helpful?