function Color()
{
    this.color;
    if(Color.arguments.length == 1)
    {
        this.color = new Vector(Color.arguments[0]);
    }
    else if(Color.arguments.length == 3)
    {
        this.color = new Vector(Color.arguments[0],Color.arguments[1],Color.arguments[2]);
    }
    else
    {
        this.color = new Vector();
    }
    
    this.setRGB = setRGB;
    this.getRGB = getRGB;
    this.toString = toString;
    this.toHex = toHex;
    
    function setRGB(newR, newG, newB){this.color.setX(newR); this.color.setY(newG); this.color.setZ(newB);}
    function getRGB(){return this.color;}
    function toString(){return this.color.toString()}
    function toHex(){return this.color.x.toString(16) + this.color.y.toString(16)+this.color.z.toString(16)}
}