Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,21 @@
|
|||
black = color(0)
|
||||
white = color(255)
|
||||
|
||||
def setup():
|
||||
size(320, 240)
|
||||
# frameRate(30) # 60 by default
|
||||
|
||||
|
||||
def draw():
|
||||
loadPixels()
|
||||
for i in range(len(pixels)):
|
||||
if random(1) < 0.5:
|
||||
pixels[i] = black
|
||||
else:
|
||||
pixels[i] = white
|
||||
|
||||
updatePixels()
|
||||
fill(0, 128)
|
||||
rect(0, 0, 60, 20)
|
||||
fill(255)
|
||||
text(frameRate, 5, 15)
|
||||
Loading…
Add table
Add a link
Reference in a new issue