FeBro - 2010-10-07

Hi,

I want to color my curve as follows:

everything with x-values between x0 and x1 is supposed to get color c1, everything between x1 and x2 color c2. Like a bitmap containing different colored pixels.

I tried to set the color index dependent on static_cast<int>(x), but there still is a color gradient. also this doesn't work for larger graphs, e. g. with 400*400 meshes (this takes several seconds to calculate which is way too large for me).

thanks!
Felix