Файл: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 или някоя следваща версия, издадена от Фондацията за свободен софтуер; без непроменими раздели, без текст на предната подвързия и без текст на задната подвързия. Копие на този лиценз е приложено в раздела Лиценз за свободна документация на ГНУ.

Описания

Add a one-line explanation of what this file represents

Items portrayed in this file

изобразен обект

copyright status английски

copyrighted английски

История на файла

Избирането на дата/час ще покаже как е изглеждал файлът към онзи момент.

Дата/ЧасМиникартинкаРазмерПотребителКоментар
текуща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

Следната страница използва следния файл:

Глобално използване на файл

Този файл се използва от следните други уикита: