You can modify program to use both color mode options lovever=10 is old love, =11 is new love.
sample
major, minor, revision, codename = love.getVersion();
lovever_full = string.format("Version %d.%d.%d - %s", major, minor, revision, codename)
lovever=major;
colorshift=math.random(255); if (lovever>10) then colorshift=math.random(0,1); end; -- Love 11 version
lg.setColor(colorshift,colorshift ,colorshift, 255);
end;