Namespace: DeltaEngine.Rendering2D
Assembly: DeltaEngine.Rendering2D (in DeltaEngine.Rendering2D.dll) Version: 1.1.1.0 (1.1.1)
Tests: DeltaEngine.Rendering2D.Graphs.Tests.GradientGraphTests
1 unit tests call DeltaEngine.Rendering2D.Entity2D.Set(System.Object)
Assembly: DeltaEngine.Rendering2D (in DeltaEngine.Rendering2D.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Parameters
- component
- Type: System Object
Remarks
Examples
[Test, CloseAfterFirstFrame] public void SetColors() { var gradient = new GradientGraph(new Rectangle(0.1f, 0.4f, 0.8f, 0.2f)); gradient.SetValue(0, Color.Red); gradient.SetValue(1, Color.Orange); Assert.AreEqual(new[]{Color.Red, Color.Orange}, gradient.Values); }
See Also