Skip to content

Instantly share code, notes, and snippets.

@BenjaminSantiago
Created November 21, 2022 18:58
Show Gist options
  • Save BenjaminSantiago/8fd8d2e546307d7d6e82ad405f58fe55 to your computer and use it in GitHub Desktop.
Save BenjaminSantiago/8fd8d2e546307d7d6e82ad405f58fe55 to your computer and use it in GitHub Desktop.
our keyboard example with the CPX and Processing; the Processing side
def setup():
background(255)
size(500,500)
def draw():
pass
def keyReleased():
if key == 'a' or key == 'A':
background(255,0,255)
if key == 'b' or key == 'B':
background(0,255,255)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment