ColorGradient
Creates a pixmap with a vertical linear color gradient between two colours.
Syntax
-
ColorGradient(w, h, c0, c1)
-
w
andh
are positive integers -
c0
andc1
are colours
-
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")