/* === E N T R Y P O I N T ================================================= */
SpiralGradient::SpiralGradient():
- Layer_Composite(1.0,Color::BLEND_STRAIGHT),
+ Layer_Composite(1.0,Color::BLEND_COMPOSITE),
gradient(Color::black(),Color::white()),
center(0,0),
radius(0.5),
angle(Angle::zero()),
clockwise(false)
{
+ Layer::Vocab voc(get_param_vocab());
+ Layer::fill_static(voc);
}
bool
ret.push_back(ParamDesc("gradient")
.set_local_name(_("Gradient"))
+ .set_description(_("Gradient to apply"))
);
ret.push_back(ParamDesc("center")
.set_local_name(_("Center"))
+ .set_description(_("Center of the gradient"))
);
ret.push_back(ParamDesc("radius")
ret.push_back(ParamDesc("angle")
.set_local_name(_("Angle"))
+ .set_description(_("Rotation of the spiral"))
.set_origin("center")
);
ret.push_back(ParamDesc("clockwise")
.set_local_name(_("Clockwise"))
+ .set_description(_("When checked the spiral turns clockwise"))
);
return ret;