float pos;
}ColorStop;
typedef struct linear_g{
- char name[40];
+ char name[80];
float x1,x2,y1,y2;
std::list<ColorStop*> *stops;
Matrix *transform;
}LinearGradient;
typedef struct radial_g{
- char name[40];
+ char name[80];
float cx,cy;//center point
//float fx,fy; //not supported by Synfig
float r; //radius
void build_vector (xmlpp::Element* root,String name,float x,float y,String guid);
void build_color(xmlpp::Element* root,float r,float g,float b,float a);
xmlpp::Element* nodeStartBasicLayer(xmlpp::Element* root);
+ xmlpp::Element* nodeStartBasicLayer(xmlpp::Element* root, String name);
/* === COORDINATES & TRANSFORMATIONS ============== */
int getGreen(String hex);
int getBlue(String hex);
int hextodec(String hex);
+ int getColor(String name, int position);
float getDimension(const String ac);
//string functions
void removeS(String *input);