Example #1
0
void writeObjects(pngwriter* png, Procrustes* p)
{
	vector<PObject*>* objs = p -> findObjects();
	srand(time(NULL));
	for (int i = 0; i < objs -> size(); i++)
	{
		PObject* o = objs -> at(i);
		int b = rand()%65535;
		int g = rand()%65535;
		int r = rand()%65535;
		writePairs(png,o->getPoints(),r,g,b);
//		cout << r << " " << g << " " << b << endl;
	}
}