• Home
  • Raw
  • Download

Lines Matching refs:Fractal

187 free_ifs_buffers (FRACTAL * Fractal)  in free_ifs_buffers()  argument
189 if (Fractal->Buffer1 != NULL) { in free_ifs_buffers()
190 (void) free ((void *) Fractal->Buffer1); in free_ifs_buffers()
191 Fractal->Buffer1 = (IFSPoint *) NULL; in free_ifs_buffers()
193 if (Fractal->Buffer2 != NULL) { in free_ifs_buffers()
194 (void) free ((void *) Fractal->Buffer2); in free_ifs_buffers()
195 Fractal->Buffer2 = (IFSPoint *) NULL; in free_ifs_buffers()
201 free_ifs (FRACTAL * Fractal) in free_ifs() argument
203 free_ifs_buffers (Fractal); in free_ifs()
212 FRACTAL *Fractal; in init_ifs() local
223 Fractal = data->Root; in init_ifs()
225 free_ifs_buffers (Fractal); in init_ifs()
230 Fractal->Depth = MAX_DEPTH_3; in init_ifs()
231 Fractal->r_mean = .6; in init_ifs()
232 Fractal->dr_mean = .4; in init_ifs()
233 Fractal->dr2_mean = .3; in init_ifs()
237 Fractal->Depth = MAX_DEPTH_4; in init_ifs()
238 Fractal->r_mean = .5; in init_ifs()
239 Fractal->dr_mean = .4; in init_ifs()
240 Fractal->dr2_mean = .3; in init_ifs()
244 Fractal->Depth = MAX_DEPTH_5; in init_ifs()
245 Fractal->r_mean = .5; in init_ifs()
246 Fractal->dr_mean = .4; in init_ifs()
247 Fractal->dr2_mean = .3; in init_ifs()
252 Fractal->Depth = MAX_DEPTH_2; in init_ifs()
253 Fractal->r_mean = .7; in init_ifs()
254 Fractal->dr_mean = .3; in init_ifs()
255 Fractal->dr2_mean = .4; in init_ifs()
258 Fractal->Nb_Simi = i; in init_ifs()
259 Fractal->Max_Pt = Fractal->Nb_Simi - 1; in init_ifs()
260 for (i = 0; i <= Fractal->Depth + 2; ++i) in init_ifs()
261 Fractal->Max_Pt *= Fractal->Nb_Simi; in init_ifs()
263 if ((Fractal->Buffer1 = (IFSPoint *) calloc (Fractal->Max_Pt, in init_ifs()
265 free_ifs (Fractal); in init_ifs()
268 if ((Fractal->Buffer2 = (IFSPoint *) calloc (Fractal->Max_Pt, in init_ifs()
270 free_ifs (Fractal); in init_ifs()
274 Fractal->Speed = 6; in init_ifs()
275 Fractal->Width = width; /* modif by JeKo */ in init_ifs()
276 Fractal->Height = height; /* modif by JeKo */ in init_ifs()
277 Fractal->Cur_Pt = 0; in init_ifs()
278 Fractal->Count = 0; in init_ifs()
279 Fractal->Lx = (Fractal->Width - 1) / 2; in init_ifs()
280 Fractal->Ly = (Fractal->Height - 1) / 2; in init_ifs()
281 Fractal->Col = rand () % (width * height); /* modif by JeKo */ in init_ifs()
283 Random_Simis (goomInfo, Fractal, Fractal->Components, 5 * MAX_SIMI); in init_ifs()