Next: , Previous: Display Functions, Up: Miscellaneous Functions


20.4 Gradient Functions

The gradient feature allows color gradients to be drawn in images. (Evaluate (require 'gradient) to load 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.