- Timestamp:
- 01/15/15 18:59:07 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.GrammaticalOptimization/HeuristicLab.Common/ConsoleEx.cs
r11745 r11770 108 108 109 109 public static ConsoleColor ColorForValue(double d) { 110 Debug.Assert(d >= 0 && d <= 1.0); 110 //Debug.Assert(d >= 0 && d <= 1.0); 111 d = Math.Min(1.0, Math.Max(0.0, d)); 111 112 var cIdx = Math.Max(0, (int)Math.Floor(d * 15) - 1); 112 113 return colors[cIdx];
Note: See TracChangeset
for help on using the changeset viewer.