package rainbowPackage;

import javafx.scene.paint.Color;

public class ColorArrayReverser
{
	public Color[] colorArray;
	public ColorArrayReverser()
	{
		colorArray = new Color[2];
	}
	public ColorArrayReverser(int Length)
	{
		colorArray = new Color[Length];
	}
	public ColorArrayReverser(Color[] ColorArray)
	{
		colorArray = ColorArray;
	}
	public Color[] ReverseArray(Color[] ColorArray)
	{
		colorArray = ColorArray;
		for (int a = 0; a < ColorArray.length; a++)
		{
			colorArray[ColorArray.length - 1 - a] = ColorArray[a];
		}
		return colorArray;
	}
	public int Length()
	{
		return colorArray.length;
	}
	public void set(Color[] ColorArray) { colorArray = ColorArray; }//14th Square DiagnosticsClass.java
	public Color[] get() { return colorArray; }
}