CurveGradient::CurveGradient(): Layer_Composite(1.0,Color::BLEND_COMPOSITE), param_origin(ValueBase(Point(0,0))), param_width(ValueBase(Real(0.25))), param_bline(ValueBase(std::vector<synfig::BLinePoint>())), param_gradient(Gradient(Color::black(), Color::white())), param_loop(ValueBase(false)), param_zigzag(ValueBase(false)), param_perpendicular(ValueBase(false)), param_fast(ValueBase(true)) { std::vector<synfig::BLinePoint> bline; bline.push_back(BLinePoint()); bline.push_back(BLinePoint()); bline.push_back(BLinePoint()); bline[0].set_vertex(Point(0,1)); bline[1].set_vertex(Point(0,-1)); bline[2].set_vertex(Point(1,0)); bline[0].set_tangent(bline[1].get_vertex()-bline[2].get_vertex()*0.5f); bline[1].set_tangent(bline[2].get_vertex()-bline[0].get_vertex()*0.5f); bline[2].set_tangent(bline[0].get_vertex()-bline[1].get_vertex()*0.5f); bline[0].set_width(1.0f); bline[1].set_width(1.0f); bline[2].set_width(1.0f); bline_loop=true; param_bline.set(bline); sync(); SET_INTERPOLATION_DEFAULTS(); SET_STATIC_DEFAULTS(); }
Julia::Julia(): param_color_shift(ValueBase(Angle::deg(0))) { param_icolor=ValueBase(Color::black()); param_ocolor=ValueBase(Color::black()); param_iterations=ValueBase(int(32)); param_color_shift=ValueBase(Angle::deg(0)); param_distort_inside=ValueBase(true); param_distort_outside=ValueBase(true); param_shade_inside=ValueBase(true); param_shade_outside=ValueBase(true); param_solid_inside=ValueBase(false); param_solid_outside=ValueBase(false); param_invert_inside=ValueBase(false); param_invert_outside=ValueBase(false); param_color_inside=ValueBase(true); param_color_outside=ValueBase(false); param_color_cycle=ValueBase(false); param_smooth_outside=ValueBase(true); param_broken=ValueBase(false); param_seed=ValueBase(Point(0,0)); param_bailout=ValueBase(Real(4)); lp=log(log(param_bailout.get(Real()))); SET_INTERPOLATION_DEFAULTS(); SET_STATIC_DEFAULTS(); }
Zoom::Zoom(): param_center(ValueBase(Vector(0,0))), param_amount(ValueBase(Real(0))) { SET_INTERPOLATION_DEFAULTS(); SET_STATIC_DEFAULTS(); }
XORPattern::XORPattern(): Layer_Composite(1.0,Color::BLEND_COMPOSITE), param_origin(ValueBase(Vector(0.125,0.125))), param_size(ValueBase(Vector(0.25,0.25))) { SET_INTERPOLATION_DEFAULTS(); SET_STATIC_DEFAULTS(); }
Rotate::Rotate(): param_origin (ValueBase(Vector(0,0))), param_amount (ValueBase(Angle::deg(0))), sin_val (0), cos_val (1) { SET_INTERPOLATION_DEFAULTS(); SET_STATIC_DEFAULTS(); }
LinearGradient::LinearGradient(): Layer_Composite(1.0,Color::BLEND_COMPOSITE), param_p1(ValueBase(Point(1,1))), param_p2(ValueBase(Point(-1,-1))), param_gradient(ValueBase(Gradient(Color::black(), Color::white()))), param_loop(ValueBase(false)), param_zigzag(ValueBase(false)) { SET_INTERPOLATION_DEFAULTS(); SET_STATIC_DEFAULTS(); }
Warp::Warp(): param_src_tl (ValueBase(Point(-2,2))), param_src_br (ValueBase(Point(2,-2))), param_dest_tl (ValueBase(Point(-1.8,2.1))), param_dest_tr (ValueBase(Point(1.8,2.1))), param_dest_bl (ValueBase(Point(-2.2,-2))), param_dest_br (ValueBase(Point(2.2,-2))), param_clip (ValueBase(true)) { param_horizon=ValueBase(Real(4)); sync(); SET_INTERPOLATION_DEFAULTS(); SET_STATIC_DEFAULTS(); }
CurveWarp::CurveWarp(): param_origin(ValueBase(Point(0,0))), param_perp_width(ValueBase(Real(1))), param_start_point(ValueBase(Point(-2.5,-0.5))), param_end_point(ValueBase(Point(2.5,-0.3))), param_bline(ValueBase(std::vector<synfig::BLinePoint>())), param_fast(ValueBase(true)) { std::vector<synfig::BLinePoint> bline; bline.push_back(BLinePoint()); bline.push_back(BLinePoint()); bline[0].set_vertex(Point(-2.5,0)); bline[1].set_vertex(Point( 2.5,0)); bline[0].set_tangent(Point(1, 0.1)); bline[1].set_tangent(Point(1, -0.1)); bline[0].set_width(1.0f); bline[1].set_width(1.0f); param_bline.set(bline); sync(); SET_INTERPOLATION_DEFAULTS(); SET_STATIC_DEFAULTS(); }