Algosim documentation: ColorGradient

ColorGradient

Creates a pixmap with a vertical linear color gradient between two colours.

Syntax

Description

ColorGradient(w, h, c0, c1) returns a w×h pixmap containing a vertical linear gradient from c0 (top) to c1 (bottom).

Examples

ColorGradient(200, 200, "yellow", "black")

Image 1