Color

Introduction

The Color property lets you set the color of a Polygon.

Code Example

The following code shows how to set a Polygon to a color:

// Assuming PolygonInstance is a valid Polygon
PolygonInstance.Color = Color.Red;

Premultiplied Colors

If the engine uses premultiplied alpha, then you must provide premultiplied alpha colors if using transparency.

Last updated