Ignore:
Timestamp:
2017-07-31 14:59:36 (2 years ago)
Author:
otosjahn
Message:

otto rikko

File:
1 edited

Legend:

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

    r9261 r9278  
    2929    { 
    3030        c.BrushColor = Color.Red; 
    31         double d = Time.SinceLastUpdate.TotalSeconds; //Mouse.PositionOnScreen.Angle.Degrees/1000; 
     31        //Mouse.PositionOnScreen.Angle.Degrees/1000; 
    3232 
    3333        for (int i = 0; i < ps.Count; i++) 
     
    3838        for (int i = 0; i < crc.Count; i++) 
    3939        { 
    40             c.DrawLine(crc[i % crc.Count], crc[(i + 1) % crc.Count]); 
     40            c.DrawLine(crc[i % crc.Count], crc[(i + 2) % crc.Count]); 
    4141            crc[i % crc.Count] = new Vector(Math.Sin(i) * rad, Math.Cos(i) * rad); 
    4242            if (rad > 200 || rad < 1) radc = -radc; rad -= radc; 
    4343        } 
    4444 
    45         Rotate(ps, d); Rotate(crc, d, true); 
     45        Rotate(ps); Rotate(crc, true); 
    4646 
    47         //Squeeze(ps); 
     47        Squeeze(ps); 
    4848 
    4949        base.Paint(c); 
    5050    } 
    5151 
    52     void Rotate(List<Vector> vs, double d, bool reverse = false) 
     52    void Rotate(List<Vector> vs, bool reverse = false) 
    5353    { 
     54        double d = Time.SinceLastUpdate.TotalSeconds; 
     55 
    5456        if (reverse) d = -d; 
    5557        for (int i = 0; i < vs.Count; i++) 
Note: See TracChangeset for help on using the changeset viewer.