Coordinates too far from the fractal had incorrect color.
/* By: ljiriste <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/10/27 14:29:26 by ljiriste #+# #+# */
-/* Updated: 2024/01/16 14:31:25 by ljiriste ### ########.fr */
+/* Updated: 2024/01/17 10:29:34 by ljiriste ### ########.fr */
/* */
/* ************************************************************************** */
count = 0;
z.r = 0;
z.i = 0;
+ if (complex_norm(c) > 4)
+ return (0.01);
while (complex_norm(z) < threshold && count < 100 * resolution)
{
z = complex_add(complex_mul(z, z), c);