Cairo Quiz #1 23 December, 2008
This is the first of a set of quizzes touching the things I don’t know how to code in cairo
I need to draw some “glow” as the one you see here:
![]()
and here: (it’s just an example, I don’t want to copy vista!!!)

Something like a radial gradient, but streched!
The first Idea I’ve got was this but it is ugly because of the fixed radius and the idea of drawing it with a big circle…
Ideas? ![]()
23 December, 2008 alle 18:43
Am I missing something here…? You want a stretched radial gradient, can’t you just use cairo_scale and cairo_pattern_create_radial?
23 December, 2008 alle 19:22
cairo_pattern_set_matrix() on the gradient pattern works, too.