Skip to content

Instantly share code, notes, and snippets.

@qingfeng
Created July 24, 2010 07:53
Show Gist options
  • Save qingfeng/488507 to your computer and use it in GitHub Desktop.
Save qingfeng/488507 to your computer and use it in GitHub Desktop.
Douban Color
size(1024,800)
colormode(RGB)
nofill()
background(0.9137, 0.9569, 0.9137)
for i in range(100):
stroke(0.9843, 0.8118, 0.5961, random(0.3))
strokewidth(random(8))
radius = random(500)
oval(random(-100, WIDTH), random(-100, HEIGHT), radius, radius)
for i in range(200):
c = color(random(0.0000,0.3), 0.6745, random(0.5,0.8549), random(0.2, 0.6))
stroke(c)
strokewidth(random(50))
radius = random(200)
oval(random(-100, WIDTH), random(-100, HEIGHT), radius, radius)
for i in range(100):
stroke(1.0, 0.9647, 0.9333, random(0.5))
strokewidth(random(8))
radius = random(500)
oval(random(-100, WIDTH), random(-100, HEIGHT), radius, radius)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment