#include int main() { cairo_surface_t* surf; cairo_t* cr; int i, j, k; surf = cairo_image_surface_create( CAIRO_FORMAT_ARGB32, 256, 256 ); cr = cairo_create( surf ); cairo_set_source_rgba( cr, 0.5, 0.75, 1.0, 1.0 ); cairo_set_line_width( cr, 13.0 ); for( i = 0; i < 5; i++ ) { for( j = 0; j < 100; j++ ) { cairo_move_to( cr, 128.0, 128.0 ); for( k = 0; k < 10; k++ ) { cairo_line_to( cr, (double)((j*123+k*55)%256), (double)((j*321+k*123)%256)); } cairo_close_path( cr ); } cairo_clip_preserve( cr ); cairo_stroke( cr ); cairo_reset_clip( cr ); } return 0; }