Phue\Group::setXY PHP Method

setXY() public method

Set XY
public setXY ( float $x, float $y ) : self
$x float X value
$y float Y value
return self This object
    public function setXY($x, $y)
    {
        $_x = new SetGroupState($this);
        $_y = $_x->xy((double) $x, (double) $y);
        $this->client->sendCommand($_y);
        // Change both internal xy and colormode state
        $this->attributes->action->xy = array($x, $y);
        $this->attributes->action->colormode = 'xy';
        return $this;
    }