Sujet : Re: The splendor of true
De : chris.m.thomasson.1 (at) *nospam* gmail.com (Chris M. Thomasson)
Groupes : sci.mathDate : 11. Mar 2025, 01:48:21
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vqo18o$1kkf3$1@dont-email.me>
References : 1 2 3
User-Agent : Mozilla Thunderbird
On 3/10/2025 4:09 PM, Richard Hachel wrote:
Le 10/03/2025 à 22:21, "Chris M. Thomasson" a écrit :
On 3/8/2025 3:54 PM, Richard Hachel wrote:
<http://nemoweb.net/jntp?gpYr5eUNsnuIlHzO4tsg1kWypUg@jntp/Data.Media:1>
What is this?
This is from a Mulia of mine that uses two split complex number iterations before it iterates using a traditional Mandelbrot set using good ol' complex numbers. Here is my per point iteration function:
________________________
void
iterate_complex_split_point(
ct::plot::cairo::plot_2d& scene,
glm::vec2 p0,
unsigned long x,
unsigned long y,
unsigned long n
) {
glm::vec2 z = p0;
glm::vec2 c = z;
//c = { -.75, 0 }; // Julia mode...
float mindis = 9999999.f;
z = ct_complex_split_mul(z, z) + c;
z = ct_complex_split_mul(z, z) + c;
for (unsigned long i = 0; i < n; ++i)
{
z = ct_complex_mul(z, z) + c;
float zdis = glm::length(z);
mindis = glm::min(mindis, zdis);
if (zdis > 2.f)
{
return;
}
}
scene.set_pixel(x, y, CT_RGBF(mindis * 10.f, 0, 0));
}
________________________