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. |
"Parameter1" | -.7+.77i | a complex parameter. See the "MappingFunction" table below |
“Parameter2” | 1.33+77i | a complex parameter. See the “MappingFunction” table below |
“Parameter3” | -.13-.77i | a complex parameter. See the “MappingFunction” table below |
“Parameter4” | -1.9-.77i | a complex parameter. See the “MappingFunction” table below |
“Parameter5” | 2. | a real parameter. See the “MappingFunction” table below |
“Parameter6” | 1. | a real parameter. See the “MappingFunction” table below |
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:
"Beanstalks" | based on the distance to the corners of the image |
"Cobweb" | based on the final value of IntegerPart[zre] + Round[zim] + "Parameter1" |
"DandelionSeeds" | based on the weighted distances between three points (located by "Parameter1", "Parameter2", and "Parameter3") with weights provided by "Parameter5" and "Parameter6" |
“Decomposition” | based on the final vector angle of z |
"Filigree" | based on the maximum absolute value of the vector angle of z |
"Foliage" | based on the maximum vector angle of z |
"LineOrbitTrap" | based on the minimum distance of z to a line passing through "Parameter2" and "Parameter3" |
"ModTrailings" | based on the modulus of z |
"ParallelogramOrbitTrap" | based on the distance to a quadrilateral (default is a parallelogram) with vertices at "Parameter1" through "Parameter4" and multipliers of "Parameter5" and "Parameter6" |
"RibsAndTusks" | based on the minimum and maximum distance to a quadrilateral with vertices on the image corners and multipliers of “Parameter5” and “Parameter6” |
"Smooth" | (default) gives a smooth gradient inside and outside |
"ThreePointsOrbitTrap" | based on the minimum distance of z to equlateral triangle vertices (default) or any triangle defined by the vertices at "Parameter1" through "Parameter3" |
Each preset mapping function is compiled when it is first used, which can take several seconds to complete. Subsequent calls use the compiled version which is significantly faster.
The definition for a custom MappingFunction should accept ten arguments, customMapping[px, center, corner, maxIt,param1,param2,param3,param4,param5,param6]:
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 |
param1...param4 | complex numbers potentially provided by the user |
param5,param6 | real numbers potentially provided by the user |
center and corner are useful for mappings that scale or are aware of the image dimensions.