Entity2D Set Method Delta Engine Documentation

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

public override void Set(
	Object component
)
Remarks

Tests: DeltaEngine.Rendering2D.Graphs.Tests.GradientGraphTests
Examples

1 unit tests call DeltaEngine.Rendering2D.Entity2D.Set(System.Object)
[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