Entity2D Color Property Delta Engine Documentation

Namespace: DeltaEngine.Rendering2D
Assembly: DeltaEngine.Rendering2D (in DeltaEngine.Rendering2D.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public Color Color { get; set; }

Property Value

Type: Color
Remarks

Tests: GameOfLife.Tests.CellTests
Examples

2 unit tests call DeltaEngine.Rendering2D.Entity2D.Color
[Test, CloseAfterFirstFrame]
public void NewCellIsDeadAndHasTransparentWhiteColor()
{
    Assert.IsFalse(cell.IsAlive);
    Assert.AreEqual(Color.TransparentWhite, cell.Color);
}
[Test, CloseAfterFirstFrame]
public void LiveCellHasWhiteColor()
{
    cell.Revive();
    Assert.AreEqual(Color.White, cell.Color);
}
See Also