A #cairo_pattern_t represents a source when drawing onto a surface. There are different subtypes of #cairo_pattern_t, for different types of sources; for example, cairo.global.patternCreateRgb creates a pattern for a solid opaque color.