MCPcopy Create free account
hub / github.com/ProgrammingRust/mandelbrot / render

Function render

src/main.rs:113–131  ·  view source on GitHub ↗

Render a rectangle of the Mandelbrot set into a buffer of pixels. The `bounds` argument gives the width and height of the buffer `pixels`, which holds one grayscale pixel per byte. The `upper_left` and `lower_right` arguments specify points on the complex plane corresponding to the upper- left and lower-right corners of the pixel buffer.

(pixels: &mut [u8],
          bounds: (usize, usize),
          upper_left: Complex<f64>,
          lower_right: Complex<f64>)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

mainFunction · 0.85

Calls 2

pixel_to_pointFunction · 0.85
escape_timeFunction · 0.85

Tested by

no test coverage detected