public void MakeData() { this.timeline = EntityBuilder.Start() .Point(80, 0.5) .Stop(5200) .Mutual(e => e.Point(6000, 0.15) .Line(4000, 0.30) .Point(3500, 0.15) .Line(3000, 0.30) .Loop(ee => ee.Stop(Time.Rand(10, 24)) .Point(120, 0.15) , 24) .Point(3500, 0.15) .Loop(ee => ee.Stop(Time.Rand(10, 24)) .Point(20, 0.15) .Line(120, 0.30) , 12) .From(0.15) .Line(3500, 0.36) .Loop(ee => ee.Point(30, 0.30) .Trigonometric(125, 0.10, TrigonometricFunction.Start) , 22) .Random(0.15, 0.22, 15, 200) .Point(2500, 0.15) .Line(4500, 0.45)) .ToTimeline(); }
public EntityTimeline ToEntityTimeline() { var entity = EntityBuilder.Start(); foreach (var child in this.Where(e => e.GenerationLevel == 0)) { entity = this.ToEntity(entity, child); } return(entity.ToTimeline()); }