Skip to content

Instantly share code, notes, and snippets.

@n1ckfg
Last active October 4, 2017 14:50
Show Gist options
  • Save n1ckfg/0aa35fabaf377602250fd516cdb22db2 to your computer and use it in GitHub Desktop.
Save n1ckfg/0aa35fabaf377602250fd516cdb22db2 to your computer and use it in GitHub Desktop.
Test whether g is accessible in Processing's Python mode
# https://github.com/jdf/processing.py/issues/280
def setup():
size(300, 300, P3D)
def draw():
if frameCount == 1:
g.textFont(loadFont("Impact-48.vlw"))
g.textMode(SCREEN)
g.fill(0)
g.rect(0,0,width,height)
g.fill(255, 0, 0)
g.text("banana", mouseX, mouseY)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment