Click or drag to resize
DigitalRuneGraphicsHelperGetUniqueColor Method
Gets a unique color for an object.

Namespace: DigitalRune.Graphics
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public static Color GetUniqueColor(
	Object obj
)

Parameters

obj
Type: SystemObject
The object.

Return Value

Type: Color
A unique color.
Remarks
The color is created from the hash code of the object. For most cases this is unique but this is not guaranteed.
See Also