For the colors it should work, you can just keep the - line at 0V and vary the + line from 0 to 5V.
For XY it should also work in theory, as the inputs are differential it doesn't really matter what the absolute voltages are, only the voltage differences. But just in case the projector is not...