# Escape Time

Colour according to the integer number of iterations at which where escape radius .
# 1 C99 Code
#include <complex.h>
int m_escape_time(int N, double R, double _Complex c)
{
double _Complex z = 0;
for (int n = 0; n < N; ++n)
{
if (cabs(z) > R)
return n;
z = z * z + c;
}
return -1;
}