Mandelbrot calculation in Azure Function with Query and Blob binding
✓ Published0🌍 Public
HHugoberry
Last edited May 9, 2017
Created on May 9, 2017
This example shows a serverless Azure Function that computes the Mandelbrot set for a grid of complex coordinates and writes the resulting iteration counts to a blob. It reads a JSON trigger input containing the image bounds and resolution, then uses the .NET `System.Numerics.Complex` type to iterate the Mandelbrot recurrence for each point, counting up to 1000 iterations until the magnitude exceeds 4. The function builds an array of complex coordinates from the requested resolution and range, calculates the Mandelbrot value for each, and serializes the results as JSON to the output blob binding. The visualization itself is not rendered here; instead, the code produces raw numeric data for later plotting.
AI-generated description