ColorTests CreateWithFloats Method Delta Engine Documentation

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

public void CreateWithFloats()
Examples

[Test]
public void CreateWithFloats()
{
    var color = new Color(1.0f, 0.0f, 0.5f);
    Assert.AreEqual(255, color.R);
    Assert.AreEqual(0, color.G);
    Assert.AreEqual(127, color.B);
    Assert.AreEqual(255, color.A);
}
See Also