Ejemplo n.º 1
0
 public Arrows()
 {
     // initialize color system
     colorSystemKind = Model.ColorSystems.ColorSystemKind.AnalogousThree;
     colorSystem = Model.ColorSystems.ColorSystemFactory.Create(
         colorSystemKind,
         new ColorHSV(0, 1, 1));
     // initialize arrows
     arrows = new Arrow[maxArrows];
     arrowColorSetters = new IArrowColorSetter[maxArrows];
     var arrowsColorSetter = new ArrowsColorSetter(this);
     for (int i = 0; i < maxArrows; i++)
         arrows[i] = new Arrow(this, arrowsColorSetter, i,
             i < colorSystem.Count ? colorSystem[i] : null);
 }
Ejemplo n.º 2
0
 public ArrowColorSetter(Arrow parent)
 {
     this.parent = parent;
 }