Extracted from Pike v8.0 release 358 as of 2016-11-23.
   

Method Image.Image()->gradients()


Method gradients

int gradients(array(int) point, object ...)
int gradients(array(int) point, object ..., object floatgrad)

Description

original 2 color
gradient
10 color
gradient
3 colors,
grad=4.0
3 colors,
grad=1.0
3 colors,
grad=0.25

Returns

the new image