Changeset 9240
 Timestamp:
 20170728 14:33:58 (3 years ago)
 Location:
 2017/30/MikkoH/Sq
 Files:

 6 edited
Legend:
 Unmodified
 Added
 Removed

2017/30/MikkoH/Sq/Sq/Sq/Sq.cs
r9236 r9240 6 6 { 7 7 List<Vector> ps = new List<Vector>(); 8 double x, y, z, a, fac = 0.01;8 double x, y, z, a, fac = Math.Pow(2, 10); 9 9 10 10 public override void Begin() … … 17 17 for (int i = 300; i > 300; i = 10) ps.Add(new Vector(300, i)); 18 18 for (int i = 300; i > 300; i = 10) ps.Add(new Vector(i, 300)); 19 20 19 } 21 20 … … 26 25 c.DrawLine(ps[i % ps.Count], ps[(i + ps.Count / 4) % ps.Count]); 27 26 27 if (ps[0].X > 300) fac = Math.Pow(2, 10); 28 if (ps[ps.Count1].X < 300) fac = Math.Pow(2, 10); 29 28 30 for (int i = 0; i < ps.Count/4; i++) ps[i] = new Vector(ps[i].X + (x = fac), ps[i].Y + (y = fac)); 29 31 for (int i = ps.Count / 4 * 3; i < ps.Count; i++) ps[i] = new Vector(ps[i].X + (x = fac), ps[i].Y + (y = fac)); 30 for (int i = ps.Count / 4; i < ps.Count / 2; i++) ps[i] = new Vector(ps[i].X + (z += fac) , ps[i].Y + (a += fac));31 for (int i = ps.Count / 2; i < ps.Count / 4 * 3; i++) ps[i] = new Vector(ps[i].X + (z += fac) , ps[i].Y + (a += fac));32 for (int i = ps.Count / 4; i < ps.Count / 2; i++) ps[i] = new Vector(ps[i].X + (z += fac) % 50, ps[i].Y + (a += fac) % 50); 33 for (int i = ps.Count / 2; i < ps.Count / 4 * 3; i++) ps[i] = new Vector(ps[i].X + (z += fac) % 50, ps[i].Y + (a += fac) % 50); 32 34 33 35 base.Paint(c);
Note: See TracChangeset
for help on using the changeset viewer.