# Color themes from Kuler.

from nodebox_web import web
from nodebox_web.web import kuler

# Get the current most popular themes.
themes = kuler.search_by_popularity()

# the code below assumes the availability of methods that are defined in other
# parts of the nodebox library
#
# Display colors from the first theme.
#for i in range(100):
#    for r, g, b in themes[0]:
#        fill(r, g, b, 0.8)
#        rotate(random(360))
#        s = random(50) + 10
#        oval(random(300), random(300), s, s)
