Unless it is added to the API, it looks like it is not going to be added to processing.js.
I can appreciate his hesitation to include it for the reasons given, but if 'g' is here to stay (and I believe it has been around for a long time), how can we petition to make it part of the API or get 'blessed' in some other way?Pomax said on Jan 13, 2013:→ State changed from “new” to “wont-fix”"g" is not part of the Processing API, it's the underlying Java graphics class, and should under no circumstances be accessed in a Processing sketch. Doing so "voids your warrant", since you've escaped to plain Java, and all bets are off. Processing.js will not support the full Java API or its class and method hierarchies, only Processing's API.