- gp->view_rotx = NRAND(360);
- gp->view_roty = NRAND(360);
- gp->view_rotz = NRAND(360);
- gp->angle = NRAND(360)/90.0;
+
+ gp->rotx = frand(1.0) * RANDSIGN();
+ gp->roty = frand(1.0) * RANDSIGN();
+ gp->rotz = frand(1.0) * RANDSIGN();
+
+ /* bell curve from 0-1.5 degrees, avg 0.75 */
+ gp->dx = (frand(1) + frand(1) + frand(1)) / (360*2);
+ gp->dy = (frand(1) + frand(1) + frand(1)) / (360*2);
+ gp->dz = (frand(1) + frand(1) + frand(1)) / (360*2);
+
+ gp->d_max = gp->dx * 2;
+
+ gp->ddx = 0.00006 + frand(0.00003);
+ gp->ddy = 0.00006 + frand(0.00003);
+ gp->ddz = 0.00006 + frand(0.00003);
+
+ gp->ddx = 0.00001;
+ gp->ddy = 0.00001;
+ gp->ddz = 0.00001;
+
+
+ gp->ncolors = 255;
+ gp->colors = (XColor *) calloc(gp->ncolors, sizeof(XColor));
+ make_smooth_colormap (0, 0, 0,
+ gp->colors, &gp->ncolors,
+ False, 0, False);