ملف:RandomWalk.gif

محتويات الصفحة غير مدعومة بلغات أخرى.
من ويكيبيديا، الموسوعة الحرة

RandomWalk.gif(128 × 128 بكسل حجم الملف: 505 كيلوبايت، نوع MIME: image/gif، ‏ملفوف، ‏501 إطار، ‏15ث)

ملخص

الوصف A brownian motion-like random walk of three particles (from the same starting position) for 10000 steps; frames illustrate every tenth step with colour fading to simulate motion blur/persistence of vision. Individual random walks created with ImageJ (for the macro see below), the colours inverted, and combined to a single RGB image.
التاريخ
المصدر I created this work entirely by myself.
المؤلف Richard Wheeler (Zephyris)

ImageJ Macro

newImage("Random Walk", "8-bit White", 128, 128, 1);
length=5000;
bias=0.0;
setColor(255);
x=round(getWidth()/2);
y=round(getHeight()/2);
setPixel(x,y,0);
drand=random();
if (drand>=0 && drand<0.125) {
dir=1;
} else if (drand>=0.125 && drand<0.250) {
dir=2;
} else if (drand>=0.250 && drand<0.375) {
dir=3;
} else if (drand>=0.375 && drand<=0.500) {
dir=4;
} else if (drand>=0.500 && drand<=0.625) {
dir=5;
} else if (drand>=0.625 && drand<=0.750) {
dir=6;
} else if (drand>=0.750 && drand<=0.875) {
dir=7;
} else if (drand>=0.875 && drand<=1) {
dir=8;
}
for (l=0; l<length/10; l++) {
setSlice(l+1);
for (j=0; j<10; j++) {
if (random()<=bias) {
dir=dir;
} else {
drand=random();
if (drand>=0 && drand<0.125) {
dir=1;
} else if (drand>=0.125 && drand<0.250) {
dir=2;
} else if (drand>=0.250 && drand<0.375) {
dir=3;
} else if (drand>=0.375 && drand<=0.500) {
dir=4;
} else if (drand>=0.500 && drand<=0.625) {
dir=5;
} else if (drand>=0.625 && drand<=0.750) {
dir=6;
} else if (drand>=0.750 && drand<=0.875) {
dir=7;
} else if (drand>=0.875 && drand<=1) {
dir=8;
}
}
if (dir==1) {
x=x+1;
y=y;
} else if (dir==2) {
x=x;
y=y+1;
} else if (dir==3) {
x=x-1;
y=y;
} else if (dir==4) {
x=x;
y=y-1;
} else if (dir==5) {
x=x+1;
y=y+1;
} else if (dir==6) {
x=x+1;
y=y-1;
} else if (dir==7) {
x=x-1;
y=y+1;
} else if (dir==8) {
x=x-1;
y=y-1;
}
if (x>=getWidth()) {
x=0;
} else if (x<0) {
x=getWidth()-1;
}
if (y>=getHeight()) {
y=0;
} else if (y<0) {
y=getHeight()-1;
}
setPixel(x,y,0+25.5*j);
updateDisplay();
}
run("Add Slice");
run("Select All");
fill();
}

ترخيص

wikipedia user Zephyris، صاحب حقوق التأليف والنشر لهذا العمل، أنشر هذا العمل تحت الرخصة التالية:
GNU head يسمح نسخ وتوزيع و/أو تعديل هذه الوثيقة تحت شروط رخصة جنو للوثائق الحرة، الإصدار 1.2 أو أي إصدار لاحق تنشره مؤسسة البرمجيات الحرة؛ دون أقسام ثابتة ودون نصوص أغلفة أمامية ودون نصوص أغلفة خلفية. نسخة من الرخصة تم تضمينها في القسم المسمى GNU Free Documentation License.

الشروحات

أضف شرحاً من سطر واحد لما يُمثِّله هذا الملف

العناصر المصورة في هذا الملف

يُصوِّر

١٦ يوليو 2009

تاريخ الملف

اضغط على زمن/تاريخ لرؤية الملف كما بدا في هذا الزمن.

زمن/تاريخصورة مصغرةالأبعادمستخدمتعليق
حالي15:09، 5 فبراير 2010تصغير للنسخة بتاريخ 15:09، 5 فبراير 2010128 × 128 (505 كيلوبايت)Toobaz== Summary == {{Information |Description = A brownian motion-like random walk of three particles (from the same starting position) for 10000 steps; frames illustrate every tenth step with colour fading to simulate motion blur/persistence of visio

الصفحة التالية تستخدم هذا الملف:

الاستخدام العالمي للملف

الويكيات الأخرى التالية تستخدم هذا الملف: