# Changeset 9240 for 2017/30/MikkoH/Sq/Sq/Sq/Sq.cs

Ignore:
Timestamp:
2017-07-28 14:33:58 (4 years ago)
Message:

File:
1 edited

Unmodified
Removed
• ## 2017/30/MikkoH/Sq/Sq/Sq/Sq.cs

 r9236 { List ps = new List(); double x, y, z, a, fac = 0.01; double x, y, z, a, fac = Math.Pow(2, -10); public override void Begin() for (int i = 300; i > -300; i -= 10) ps.Add(new Vector(300, i)); for (int i = 300; i > -300; i -= 10) ps.Add(new Vector(i, -300)); } c.DrawLine(ps[i % ps.Count], ps[(i + ps.Count / 4) % ps.Count]); if (ps[0].X > -300) fac = Math.Pow(2, -10); if (ps[ps.Count-1].X < -300) fac = -Math.Pow(2, -10); for (int i = 0; i < ps.Count/4; i++) ps[i] = new Vector(ps[i].X + (x -= fac), ps[i].Y + (y -= fac)); 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)); 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)); 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)); 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); 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); base.Paint(c);
Note: See TracChangeset for help on using the changeset viewer.