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 Multiply() { var color1 = new Color(128, 128, 128); var halfColor1 = color1 * 0.5f; Assert.AreEqual(new Color(64, 64, 64, 127), halfColor1); var color2 = new Color(0.1f, 0.1f, 0.1f); Assert.AreEqual(new Color(25, 25, 25), color2); Assert.AreEqual(new Color(100, 100, 100), color2 * 4); var multipliedColor = color1 * color2; Assert.AreEqual(new Color(0.05f, 0.05f, 0.05f), multipliedColor); }
See Also