design Package

design Package

borders Module

borders

Functions for creating border pattern graphics.

design.borders.circles(width=12, height=12, color=<RGBColor red: 255, green: 255, blue: 255>)[source]

Draws a repeatable circle border pattern.

design.borders.circles_pil(width, height, color)[source]

Implementation of circle border with PIL.

design.borders.circles_pycairo(width, height, color)[source]

Implementation of circle border with PyCairo.

clouds Module

clouds

Functions for creating cloud graphics.

design.clouds.draw_circle(ctx, x, y, radius, cairo_color)[source]

Draw a circle. :param radius: radius in pixels :param cairo_color: normalized rgb color

design.clouds.draw_cloud(width=140, height=60, color=<RGBColor red: 255, green: 255, blue: 255>)[source]

Draw a cloud with the given width, height, and color.

gradients Module

gradients

Functions for creating gradient graphics.

Note

CSS3 gradients are better than image gradient strips in most cases. See http://www.colorzilla.com/gradient-editor/

design.gradients.vertical_strip(width=10, height=100, color=<RGBColor red: 100, green: 100, blue: 100>, subtlety=0.1)[source]

Draws a subtle vertical gradient strip.

design.gradients.vertical_white(width=10, height=100, subtlety=0.1)[source]

Draws a subtle vertical gradient strip: white with varying alpha.