Documentation / Node reference / code nodes
code/SDFMandelbrot2D
Returns the distance to the Mandelbrot set or a related fractal.
Sdf2d
Returns the distance to the Mandelbrot set in 2D, or to the Burning Ship or the Tricorn. Raise scale and move center to zoom in.
Parameters
| Name | Type | What it does |
|---|---|---|
| P | Vector2 | Where to sample. Unwired, the builder's sample position. |
| t | Vector2 | Where center lands in the plane. |
| scale | Float | Size of one plane unit. Raise it to zoom in. |
| center | Vector2 | Point of the complex plane placed at t. |
| power | UInt8 | Exponent. 2 is the classic set; higher adds bulbs. |
| iterations | UInt8 | Steps per point. More sharpens the fine filaments. |
| variant | UInt8 MANDELBROT · BURNING_SHIP · TRICORN | Which set to draw. |
See also
This page is generated from the engine, so it describes the release you can download. The same text is in the editor's Help panel next to the node itself.