package rainbowPackage;

import javafx.scene.paint.Color;

public class ColorValueFit
{
	public double ColorToBeChecked = 0;
	public ColorValueFit ( )
	{
		this.ColorToBeChecked = 0;
		ColorToBeChecked = Math.abs(ColorToBeChecked);
		if ( ColorToBeChecked > 255)
			ColorToBeChecked = 255;
	}
	public ColorValueFit ( double ColorToBeChecked )
	{
		this.ColorToBeChecked = ColorToBeChecked;
		ColorToBeChecked = Math.abs(ColorToBeChecked);
		if ( ColorToBeChecked > 255)
			ColorToBeChecked = 255;
	}
	public double ColorValueFitter ( )
	{
		this.ColorToBeChecked = 0;
		ColorToBeChecked = Math.abs(ColorToBeChecked);
		if ( ColorToBeChecked > 255)
			ColorToBeChecked = 255;
		return ColorToBeChecked;
	}
	public double ColorValueFitter ( double ColorToBeChecked )
	{
		this.ColorToBeChecked = ColorToBeChecked;
		ColorToBeChecked = Math.abs(ColorToBeChecked);
		if ( ColorToBeChecked > 255)
			ColorToBeChecked = 255;
		return ColorToBeChecked;
	}
	public void set(double ColorToBeChecked) { this.ColorToBeChecked = ColorToBeChecked; }
    public Object get() { return (int)ColorToBeChecked; }
}
