Did I find the right examples for you? yes no

All Samples(8)  |  Call(8)  |  Derive(0)  |  Import(0)

src/j/a/jam-image-filter-HEAD/jam_image_filter/space.py   jam-image-filter(Download)
def space(image):
    image = image.convert('RGB')
    colours = util.get_dominant_colours(image, 12)
    colours = util.order_colours_by_brightness(colours)
    indices = sorted(random.sample(range(len(colours)), 3))

src/j/a/jam-image-filter-HEAD/jam_image_filter/bokeh.py   jam-image-filter(Download)
def bokeh(image):
    image = image.convert('RGB')
    colours = util.get_dominant_colours(image, 8)
    colours = util.order_colours_by_brightness(colours)[2:7]
    colour = random.choice(colours)

src/j/a/jam-image-filter-HEAD/jam_image_filter/halftone.py   jam-image-filter(Download)
    else:
        colours = util.get_dominant_colours(original, 10)
        colours = util.order_colours_by_brightness(colours)
        fg = tuple(random.choice(colours[-6:]))
        bg = tuple(random.choice(colours[:3]))

src/j/a/jam-image-filter-HEAD/jam_image_filter/ombre.py   jam-image-filter(Download)
def ombre(image):
    image = image.convert('RGB')
    colours = util.get_dominant_colours(image, 12)
    colours = util.order_colours_by_brightness(colours)
    light = random.choice(colours[:3])

src/j/a/jam-image-filter-HEAD/jam_image_filter/tats.py   jam-image-filter(Download)
def tats(image):
    image = image.convert('RGB')
    colours = util.get_dominant_colours(image, 9)
    colours = util.order_colours_by_brightness(colours)
 

src/j/a/jam-image-filter-HEAD/jam_image_filter/leopard.py   jam-image-filter(Download)
def leopard(image):
    image = image.convert('RGB')
    colours = util.get_dominant_colours(image, 12)
    colours = util.order_colours_by_brightness(colours)
    indices = sorted(random.sample(range(len(colours)), 3))

src/j/a/jam-image-filter-HEAD/jam_image_filter/triangles.py   jam-image-filter(Download)
def triangles(original, n=30, size=150, width=700,
              height=700, min_distance=70, opacity=220):
    original = original.convert('RGB')
    colours = util.get_dominant_colours(original, 8)
    colours_ordered = util.order_colours_by_brightness(colours)

src/j/a/jam-image-filter-HEAD/jam_image_filter/plaid.py   jam-image-filter(Download)
def plaid(image):
    image = image.convert('RGB')
    colours = util.get_dominant_colours(image, 12)
    colours = util.order_colours_by_brightness(colours)
    indices = sorted(random.sample(range(len(colours)), 3))