C1, C2 or C3 haven't been initialized. Also, you're not using the result of that operation... you must store it on a variable. Example VAR res=C1-RGB(0,256,0)