(Re, Im, imax)
| 44 | |
| 45 | @jit(uint8[:,:](float64[:],float64[:],int64), nopython=True) |
| 46 | def MB(Re, Im, imax): |
| 47 | nR = len(Im) |
| 48 | nC = len(Re) |
| 49 | img = np.zeros((nR, nC), |
| 50 | dtype=np.uint8) |
| 51 | for i in range(len(Im)): |
| 52 | I = Im[i] |
| 53 | for j,R in enumerate(Re): |
| 54 | c = complex(R, I) |
| 55 | img[i, j] = nIter(c, imax) |
| 56 | return img |
| 57 | |
| 58 | def main(): |
| 59 | imax = 255 |