public Sequence(IEnumerable <State> states, int generation, int numConsistent, Sector.ID myID) { States = states.ToArray(); GenerationOffset = generation; ConsistentRange = numConsistent; MyID = myID; }
private void DrawLine(Pen p, Point offset, float w, float h, Sector.ID to, Sector.WeightedIDDelta from) { float x, y; from.Export(out x, out y); PointF p0 = new PointF((x + to.X) * w + offset.X, (y + to.Y) * h + offset.Y); PointF p1 = new PointF(to.X * w + offset.X, to.Y * h + offset.Y); //Pen p = new Pen(new System.Drawing.Drawing2D.LinearGradientBrush(p0, p1, Color.FromArgb(0, 255, 0, 0), Color.FromArgb(255, 0, 0))); graphics.DrawLine(p, p0, p1); //p.Dispose(); }
public State(Sector.ID sid) : this() { }
private void DrawLine(Pen p, Point offset, float w, float h, Sector.ID to, Sector.ID from) { graphics.DrawLine(p, from.X * w + offset.X, from.Y * h + offset.Y, to.X * w + offset.X, to.Y * h + offset.Y); }