Skip to content

Instantly share code, notes, and snippets.

@qingfeng
Created July 23, 2010 16:52
Show Gist options
  • Save qingfeng/487701 to your computer and use it in GitHub Desktop.
Save qingfeng/487701 to your computer and use it in GitHub Desktop.
try:
colors = ximport("colors")
except ImportError:
colors = ximport("__init__")
reload(colors)
bg = rect(0,0,WIDTH,HEIGHT,draw=False)
colors.gradientfill(bg, color(random(),random(),random()), color(random(),random(),random()))
colors.shadow()
fill(color(random(),random(),random()))
stroke(0)
autoclosepath(False)
beginpath(300,100)
curveto(350, 100, 550, 200, 250, 400)
endpath()
beginpath(300,130)
curveto(350, 100, 20, 0, 250, 400)
endpath()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment