fix linear gradient definition (now uses values in interval [0, 1])