the PGraphics object used as the main drawing surface for a sketch is called g.
When I read something like this, I think ‘I definitely should have known that’, then I look for info about it in the surface level docs, but often I don’t find anything. Reading the entire core docs doesn’t seem like a very efficient approach…
Can anyone recommend a useful resource that lives between the core docs and the surface docs? Or can you recommend a strategy for figuring out what I don’t know that I should, that’s not in the surface docs?
I have created several libraries for Processing and it is impossible to document everything that someone else might find useful. When you consider the size of Processing the task becomes impossible.
Processing has a very useful reference section and users must be careful if they use anything that is undocumented because the developers are not promising it will be available in later versions.
The first version of Processing I used was V1.2.1 and if I remember correctly the reference strongly recommended not to use the variable g because it might be changed at some later date. I don’t think that restriction is still in effect but I haven’t looked.
If you think you have found something useful you can always ask on the forum if anyone else has used it and what for.
Yes, good point about the risks of going offroad and trying to be ‘clever’ but in doing so, relying on things which may change. (As a learner, I have been finding there are things about Processing that would be ultra obvious if you knew Java, but if you don’t, aren’t. Fortunately the help community is very helpful.)