private void DrawPath(Graphics g, IPathed pathed, Pen pen) { for (int i = 0; i < 360; i += 6) { Point p1 = MapPointOnCanvas(pathed.GetPosition(i)); Point p2 = MapPointOnCanvas(pathed.GetPosition(i + 2)); g.DrawLine(pen, p1, p2); } }
public WordCloudData(IPathed pathed, float startDegree, float endDegree, List<String> words) { this.startDegree = startDegree; this.endDegree = endDegree; this.PathedObject = pathed; Words = new List<WordData>(); foreach (String word in words) { Words.Add(new WordData(this, word)); } GeneratePaths(); }