54
55
#include "magick/monitor.h"
55
56
#include "magick/monitor-private.h"
56
57
#include "magick/random_.h"
58
#include "magick/random-private.h"
57
59
#include "magick/signature-private.h"
58
60
#include "magick/quantum-private.h"
59
61
#include "magick/static.h"
111
114
if (q == (PixelPacket *) NULL)
113
116
range=GetQuantumRange(16UL);
114
q->red=ScaleAnyToQuantum((unsigned long) (65535.0*GetPseudoRandomValue()+
116
q->green=ScaleAnyToQuantum((unsigned long) (65535.0*GetPseudoRandomValue()+
118
q->blue=ScaleAnyToQuantum((unsigned long) (65535.0*GetPseudoRandomValue()+
117
q->red=ScaleAnyToQuantum((unsigned long) (65535.0*
118
GetPseudoRandomValue(random_info)+0.5),range);
119
q->green=ScaleAnyToQuantum((unsigned long) (65535.0*
120
GetPseudoRandomValue(random_info)+0.5),range);
121
q->blue=ScaleAnyToQuantum((unsigned long) (65535.0*
122
GetPseudoRandomValue(random_info)+0.5),range);
120
123
(void) SyncAuthenticPixels(image,exception);
182
185
segment_info.y2=(double) image->rows-1;
183
186
if (LocaleCompare(image_info->filename,"fractal") == 0)
186
192
Seed pixels before recursion.
188
PlasmaPixel(image,segment_info.x1,segment_info.y1);
189
PlasmaPixel(image,segment_info.x1,(segment_info.y1+segment_info.y2)/2);
190
PlasmaPixel(image,segment_info.x1,segment_info.y2);
191
PlasmaPixel(image,(segment_info.x1+segment_info.x2)/2,segment_info.y1);
192
PlasmaPixel(image,(segment_info.x1+segment_info.x2)/2,
194
random_info=AcquireRandomInfo();
195
PlasmaPixel(image,random_info,segment_info.x1,segment_info.y1);
196
PlasmaPixel(image,random_info,segment_info.x1,(segment_info.y1+
198
PlasmaPixel(image,random_info,segment_info.x1,segment_info.y2);
199
PlasmaPixel(image,random_info,(segment_info.x1+segment_info.x2)/2,
201
PlasmaPixel(image,random_info,(segment_info.x1+segment_info.x2)/2,
193
202
(segment_info.y1+segment_info.y2)/2);
194
PlasmaPixel(image,(segment_info.x1+segment_info.x2)/2,segment_info.y2);
195
PlasmaPixel(image,segment_info.x2,segment_info.y1);
196
PlasmaPixel(image,segment_info.x2,(segment_info.y1+segment_info.y2)/2);
197
PlasmaPixel(image,segment_info.x2,segment_info.y2);
203
PlasmaPixel(image,random_info,(segment_info.x1+segment_info.x2)/2,
205
PlasmaPixel(image,random_info,segment_info.x2,segment_info.y1);
206
PlasmaPixel(image,random_info,segment_info.x2,(segment_info.y1+
208
PlasmaPixel(image,random_info,segment_info.x2,segment_info.y2);
209
random_info=DestroyRandomInfo(random_info);
199
211
i=(unsigned long) MagickMax(image->columns,image->rows)/2;
200
212
for (max_depth=0; i != 0; max_depth++)