The order of the parameters are “graphic, layer, x, y”, but in the description of the function, below where is written “Parameters”, the order is different, it is “graphic, x, y, layer”.
Little detail, but I got confused what I was doing wrong for a few minutes, because I always read the parameter from there =D