- if (totaldensity(pos) >= threshold)
- {
- if(get_amount()==1.0 && get_blend_method()==Color::BLEND_STRAIGHT)
- return color;
- else
- return Color::blend(color,context.get_color(pos),get_amount(),get_blend_method());
- }
+ if(get_amount()==1.0 && get_blend_method()==Color::BLEND_STRAIGHT)
+ return gradient(totaldensity(pos));