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); }
public ArrowColorSetter(Arrow parent) { this.parent = parent; }