Changeset 9441 for 2017/30/MikkoH/Sq/Sq
- Timestamp:
- 2017-08-04 12:56:10 (6 years ago)
- Location:
- 2017/30/MikkoH/Sq/Sq/Sq
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
2017/30/MikkoH/Sq/Sq/Sq/Sq.cs
r9418 r9441 24 24 (sqs[i].maxmag)*(glmax-glmin)) * Math.Sign(sqs[i].magc); // and reduces current magnitude 25 25 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); 27 27 c.BrushColor = new Color(d, 100, 0); // scales color change from magnitude change, TODO: something interesting 28 28 … … 42 42 43 43 sqs[i].Rotate(Time.SinceLastUpdate.TotalSeconds); 44 } 45 46 base.Paint(c); 44 } base.Paint(c); 47 45 } 48 46 }
Note: See TracChangeset
for help on using the changeset viewer.