Advertisement
Guest User

Untitled

a guest
Jan 19th, 2020
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. Clear[mbrotColor]
  2. mbrotColor[c_Complex] := Module[{max = 100, r},
  3. r = NestWhile[{#[[1]] + 1, #[[2]]^2 + c} &,
  4. {0, c}, Norm[#[[2]]] < 2 &, 1, max][[1]];
  5. 1.0 - ((max - r)/max)^2]
  6. DistributeDefinitions[mBrotColor]
  7. With[{granularity = 0.004},
  8. ArrayPlot[Transpose[ParallelTable[mbrotColor[i + j I],
  9. {i, -2, 0.75, granularity}, {j, -1, 1, granularity}]],
  10. ImageSize -> 450]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement