Cimi’s Official Blog

Italians do it Better…

Just a Blog on Gtk+ Theming, Bleeding-Edge, Good Software...

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? :)


Posted in English, Murrine |

2 Replies

  1. Chris Lord said:

    Am I missing something here…? You want a stretched radial gradient, can’t you just use cairo_scale and cairo_pattern_create_radial?

  2. Benjamin Otte said:

    cairo_pattern_set_matrix() on the gradient pattern works, too.

Leave a Comment

Attention: Moderation is enabled, and could cause a delay to the posting.

This blog is "Powered by Cimi"

Theme from: Kaushal Sheth | Modified by: Andrea Cimitan