Colorable

Interface for object that have colours.

Members

Properties

color
Color color [@property getter]

Gets the current colour.

color
Color color [@property setter]

Sets the colour for this object.

Examples

if(cast(Colorable)object) {
   object.to!Colorable.color = Color(1, 100, 5);
}

Meta