这是我如何设置表示 MandelBrot 集的数组的伪代码,但是当纵横比为 1:1 时,它会变得非常拉伸。
xStep = (maxX - minX) / width;
yStep = (maxY - minY) / height;
for(i = 0; i < width; i++)
for(j = 0; j < height; j++)
{
constantReal = minReal + xStep * i;
constantImag = minImag + yStep * j;
image[i][j] = inSet(constantReal, constantImag);
}
谢谢!