Thanks Vishvesh, but the docs are out of sync with the code… here is the checkin comment as well “* Removed methods Graphics::getCurrentFont and Graphics::getCurrentColour, because these methods will become impossible for future native drawing contexts.”
Yes, sorry. If your code snippet is the body of a function, I’d suggest just adding an explicit colour parameter to the function instead of relying on the current colour to pass that information.
Sorry if that’s a bit annoying, but the only way to keep getCurrentColour would be for me to maintain my own internal graphics state stack, mirroring the one that the native context uses - and considering how rarely getCurrentColour is used, that’d be horribly inefficient!