/* === S Y N F I G ========================================================= */
/*! \file julia.cpp
-** \brief Template Header
+** \brief Implementation of the "Julia Set" layer
+**
+** $Id$
**
** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
+** Copyright (c) 2007 Chris Moore
**
** This package is free software; you can redistribute it and/or
** modify it under the terms of the GNU General Public License as
SYNFIG_LAYER_INIT(Julia);
SYNFIG_LAYER_SET_NAME(Julia,"julia");
-SYNFIG_LAYER_SET_LOCAL_NAME(Julia,_("Julia Set"));
-SYNFIG_LAYER_SET_CATEGORY(Julia,_("Fractals"));
+SYNFIG_LAYER_SET_LOCAL_NAME(Julia,N_("Julia Set"));
+SYNFIG_LAYER_SET_CATEGORY(Julia,N_("Fractals"));
SYNFIG_LAYER_SET_VERSION(Julia,"0.1");
-SYNFIG_LAYER_SET_CVS_ID(Julia,"$Id: julia.cpp,v 1.1.1.1 2005/01/04 01:23:10 darco Exp $");
+SYNFIG_LAYER_SET_CVS_ID(Julia,"$Id$");
/* === P R O C E D U R E S ================================================= */
IMPORT(smooth_outside);
IMPORT(broken);
- if(param=="iterations" && value.same_as(iterations))
+ if(param=="iterations" && value.same_type_as(iterations))
{
iterations=value.get(iterations);
if(iterations<0)
iterations=500000;
return true;
}
- if(param=="bailout" && value.same_as(bailout))
+ if(param=="bailout" && value.same_type_as(bailout))
{
bailout=value.get(bailout);
bailout*=bailout;
zr_hold;
ColorReal
- depth, mag;
+ depth, mag(0);
Color
ret;