ckrbd.js
//as verification of hopDistance, a much slower way of calculating hopImage(i,j), results should be identical.
as verification of hopDistance, a much slower way of calculating hopImage(i,j), results should be identical.
as verification of hopDistance a much slower way of calculating hopImage ( i j ) results should be identical .
function hopImage2(i,j){
    for (var ii = 0; ii<imageHeight; ii++) {
        for (var jj = 0; jj<imageWidth; jj++) image[ii][jj] = hopDistance(i,j,ii,jj);
    }
    renderImageToRGBA();
}
function hopImage2 ( i , j ) { for ( var ii = 0 ; ii < imageHeight ; ii ++ ) { for ( var jj = 0 ; jj < imageWidth ; jj ++ ) image [ ii ] [ jj ] = hopDistance ( i , j , ii , jj ) ; } renderImageToRGBA ( ) ; }
as verification of hopDistance, a much slower way of calculating hopImage(i,j), results should be identical.
as verification of hopDistance a much slower way of calculating hopImage ( i j ) results should be identical .