It is a requirement that an instance of PGraphics can call the method color
it is in the documented API and in the source code. It is just the pre-processor makes a mess of it.
I was already aware of the code fix you posted and I agree it will do the job but is ineligant and shouldn’t be necessary. I HATE writing code like that.