Next: , Previous: , Up: Miscellaneous Functions   [Contents][Index]


20.5 Gradient Functions

The gradient feature allows color gradients to be drawn in images. Import gradient or sawfish.wm.util.gradient to use this feature.

Function: draw-vertical-gradient image from to

Draw a vertical color gradient in image. The color at the top of the image will be from, the color at the bottom to, with a smooth transition between.

Function: draw-horizontal-gradient image from to

Draw a horizontal color gradient in image, from left to right. The color at the left of the image will be from, the color at the right to, with a smooth transition between.

Function: draw-diagonal-gradient image from to

Draw a horizontal color gradient in image, from the top-left corner to the bottom-right. The color at the top-left of the image will be from, the color at the bottom-right to, with a smooth transition between.