Skip to content

Instantly share code, notes, and snippets.

@Ivoah
Created November 12, 2012 14:15
Show Gist options
  • Save Ivoah/4059633 to your computer and use it in GitHub Desktop.
Save Ivoah/4059633 to your computer and use it in GitHub Desktop.
Blinky
from scene import *
class MyScene (Scene):
def setup(self):
self.white = False
def draw(self):
if self.white == True:
background(1, 1, 1)
else:
pass
background(0, 0, 0)
self.white = not self.white
def touch_began(self, touch):
pass
def touch_moved(self, touch):
pass
def touch_ended(self, touch):
pass
run(MyScene())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment