Changeset 9441 for 2017/30/MikkoH/Sq/Sq


Ignore:
Timestamp:
2017-08-04 12:56:10 (6 years ago)
Author:
mianhayr
Message:

demottavissa

Location:
2017/30/MikkoH/Sq/Sq/Sq
Files:
5 edited

Legend:

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

    r9418 r9441  
    2424                (sqs[i].maxmag)*(glmax-glmin)) * Math.Sign(sqs[i].magc);    // and reduces current magnitude 
    2525 
    26             int d = (int)(1 + sqs[i].mag / (sqs[i].maxmag+glmax - sqs[i].minmag) * 254); 
     26            int d = (int)(sqs[i].mag / (sqs[i].maxmag+glmax - sqs[i].minmag) * 254); 
    2727            c.BrushColor = new Color(d, 100, 0); // scales color change from magnitude change, TODO: something interesting 
    2828 
     
    4242 
    4343            sqs[i].Rotate(Time.SinceLastUpdate.TotalSeconds); 
    44         } 
    45  
    46         base.Paint(c); 
     44        } base.Paint(c); 
    4745    } 
    4846} 
Note: See TracChangeset for help on using the changeset viewer.