X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fmodules%2Fmod_gradient%2Fspiralgradient.cpp;h=b4b70c4e84fa4dd470c85500203ee4a46161c40b;hb=d243d7ecee75cc386a751c79ce7085e92afcbf27;hp=81bd99d3853fb5644b9374d1d52a9706148c7b0c;hpb=a095981e18cc37a8ecc7cd237cc22b9c10329264;p=synfig.git diff --git a/synfig-core/src/modules/mod_gradient/spiralgradient.cpp b/synfig-core/src/modules/mod_gradient/spiralgradient.cpp index 81bd99d..b4b70c4 100644 --- a/synfig-core/src/modules/mod_gradient/spiralgradient.cpp +++ b/synfig-core/src/modules/mod_gradient/spiralgradient.cpp @@ -64,13 +64,15 @@ SYNFIG_LAYER_SET_CVS_ID(SpiralGradient,"$Id$"); /* === 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 @@ -107,10 +109,12 @@ SpiralGradient::get_param_vocab()const 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") @@ -122,11 +126,13 @@ SpiralGradient::get_param_vocab()const 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;