Namespace: DeltaEngine.Tests.Datatypes
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test] public void CreateTransparentVersionsOfColors() { Assert.AreEqual(new Color(255, 0, 0, 0), Color.Transparent(Color.Red)); Assert.AreEqual(new Color(0, 128, 128, 0), Color.Transparent(Color.Teal)); Assert.AreEqual(Color.TransparentWhite, Color.Transparent(Color.White)); Assert.AreEqual(new Color(255, 0, 0, 127), new Color(Color.Red, 0.5f)); Assert.AreEqual(new Color(0, 128, 128, 64), new Color(Color.Teal, 64)); }
See Also