public ArraySwatch() { this.Name = "Array Swatch"; this.Position = new Vector2(0, 0); this.Size = new Vector2(256, 256); ass = new ArraySwatchSelector(new Vector2(Bounds.Right - Bounds.X - 5, Bounds.Bottom - Bounds.Y - 5), new Vector2(10, 10)); BuildSwatch(Color.Orange); }
public ArraySwatch(Vector2 position, Vector2 size) { this.Name = "Array Swatch"; this.Position = position; this.Size = size; ass = new ArraySwatchSelector(new Vector2(Bounds.X + (Bounds.Width / 2) - 5, Bounds.Y + (Bounds.Height / 2) - 5), new Vector2(10, 10)); BuildSwatch(Color.Orange); SetColorByPoint = ass.SelectionPoint; }