Details and Options
The center cen should be a complex number.
The magnification
mag can be any positive number, though greater magnification requires a higher
MaxIterations setting to see the details and therefore longer render time. If
mag is omitted, a default value of 1.25 is used.
ResourceFunction["MandelbrotSetRemap"] accepts the following options:
ColorFunction | Automatic | color applied to each pixel's remapped value v, where 0 ≤ v ≤ 1 |
ColorFunctionScaling | True | if True,v will be scaled to 0 ≤ v ≤ 1 |
ImageSize | {260,200} | size of the image |
"MappingFunction" | "Smooth" | function that remaps the Mandelbrot set |
MaxIterations | 16 | maximum number of iterations for a pixel; higher values give more detail and longer render times |
"Parallel" | False | whether ParallelMap should be used to speed up computation; using "Parallel" with a preset will slow down the computation |
If "MappingFunction" is a custom function that outputs a list of values,
ColorFunction should accept a list as its argument.
Render times can increase greatly for larger images or complicated functions.
The "MappingFunction" option has several presets:
"Decomposition" | based on the final vector angle of c |
"LineOrbitTrap" | based on the minimum distance of c to an arbitrary line |
"ModTrailings" | based on the modulus of c |
"Smooth" | (default) gives a smooth gradient inside and outside |
"ThreePointsOrbitTrap" | based on the minimum distance of c to equlateral triangle vertices |
The preset mapping functions are compiled when they are first used, which can take several seconds to complete. Subsequent use of the preset uses the compiled version, which is significantly faster.
When using the "MappingFunction" option to specify a custom mapping function, the input should accept four arguments and have the general form customMapping[px,center,corner,maxIt], where:
px | complex location of the pixel currently being remapped |
center | complex location of the image's center |
corner | complex location of the image's lower-left corner |
maxIt | maximum number of iterations |
center and corner are useful for mappings that scale or are aware of the image dimensions.