3 ms·
Does anyone know where to find some code examples in which RGB images are generated from the equations? I don't really understand how the mathematical solution
by cossatot 3y ago
Does anyone know where to find some code examples in which RGB images are generated from the equations? I don't really understand how the mathematical solution is translated into a raster/pixel image and what the colors correspond to. But I would love to start making playing with these.
- IAmGraydon 3y agoIt's right there in the article: > The images here are generated by iterating the series typically 1,000 million times. This is performed in two passes, the first pass with many fewer iterations is used to find the bounds of the attractor on the complex plane, the second pass actually "draws" the attractor points. The process of drawing involves treating the bounded region of the complex plane as a 2D histogram, each time the series passes through a pixel region on the plane the histogram at that location is incremented. One might imagine the 2D histogram as a height field, a larger values at a point indicate that the complex series passed through that pixel more often than a point with a smaller value. At the end of the process the histogram is mapped onto colours depending on the histogram values, there are many ways to do this based on aesthetic grounds.