X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fmodules%2Fmod_gradient%2Fradialgradient.cpp;h=825557be801910e03a6cb2e14d46397c4c25c2d1;hb=d243d7ecee75cc386a751c79ce7085e92afcbf27;hp=5c3d20b61523db05519b7fa8a654ddd86b978dde;hpb=a095981e18cc37a8ecc7cd237cc22b9c10329264;p=synfig.git diff --git a/synfig-core/src/modules/mod_gradient/radialgradient.cpp b/synfig-core/src/modules/mod_gradient/radialgradient.cpp index 5c3d20b..825557b 100644 --- a/synfig-core/src/modules/mod_gradient/radialgradient.cpp +++ b/synfig-core/src/modules/mod_gradient/radialgradient.cpp @@ -65,13 +65,15 @@ SYNFIG_LAYER_SET_CVS_ID(RadialGradient,"$Id$"); /* === E N T R Y P O I N T ================================================= */ RadialGradient::RadialGradient(): - 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), loop(false), zigzag(false) { + Layer::Vocab voc(get_param_vocab()); + Layer::fill_static(voc); } bool @@ -108,10 +110,12 @@ RadialGradient::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") @@ -123,10 +127,12 @@ RadialGradient::get_param_vocab()const ret.push_back(ParamDesc("loop") .set_local_name(_("Loop")) + .set_description(_("When checked the gradient is looped")) ); ret.push_back(ParamDesc("zigzag") .set_local_name(_("ZigZag")) + .set_description(_("When checked the gradient is summetrical at the center")) ); return ret;