added (exported but previously missing) weighted_color_mean function, and linspace function to generate a linear color ramp