Not exactly. This:
- PGraphicsOpenGL pgl = (PGraphicsOpenGL) g;
- GL gl = pgl.beginGL();
Becomes this:
- GL gl = g.beginPGL().gl
Also, at the top of that wiki it says "This post is for Processing 1.x, it doesn't apply to Processing 2.x". A lot was changed for Processing 2.0, including coloring/vector definition. Check out this post by Andres on the changes regarding immediate vs. retained drawing modes.