Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization/DynamicDataDisplay/Common/Palettes/TransparentLimitsPalette.cs @ 13834

Last change on this file since 13834 was 12503, checked in by aballeit, 10 years ago

#2283 added GUI and charts; fixed MCTS

File size: 521 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Windows.Media;
6
7namespace Microsoft.Research.DynamicDataDisplay.Common.Palettes
8{
9  public class TransparentLimitsPalette : DecoratorPaletteBase
10  {
11    public TransparentLimitsPalette() { }
12
13    public TransparentLimitsPalette(IPalette palette) : base(palette) { }
14
15    public override Color GetColor(double t)
16    {
17      if (t < 0 || t > 1) return Colors.Transparent;
18      return Palette.GetColor(t);
19    }
20  }
21}
Note: See TracBrowser for help on using the repository browser.