var xor = `(x^y)`;
var xpos = `(x-128)`;
var ypos = `(y-128)`;
var circleCheck = `((${xpos}*${xpos} + ${ypos}*${ypos}) > 10000)`;
var spinX = `((Math.cos(t/1000)*${xpos})+(Math.sin(t/1000)*${ypos}))`;
var spinY = `((Math.cos(t/1000)*${ypos})+(-Math.sin(t/1000)*${xpos}))`;
var spinningXor = `(${spinX} ^ ${spinY})`;
return `${circleCheck} ? ${xor} : ${spinningXor}`;