SolidPattern
In this lesson, we'll learn about `SolidPattern` in Pycairo.
We'll cover the following...
We'll cover the following...
What does SolidPattern do?
A SolidPattern creates a solid color fill. Here is the full code to draw an orange circle on a white background:
The SolidPattern constructor takes three values: r, g, and b, which set the RGB color of the solid fill. The parameters work in the same way as the set_source_rgb function, so the values ...